I’m trying to query the Asset’s for a specific Project Name. Why does it return all Assets in the database no matter what I do? I’m guessing it has something to do with the filter
[‘project.Project.name’,‘is’,‘VFXP’]
$.ajax({
url: url + '/api/v1/entity/assets',
method: 'get',
headers: headers,
data: {
fields: 'code,project',
filters: [
['sg_category', 'is', 'Tool'],
['project.Project.name','is','VFXP']
]
},
success: function (data) {
console.log(JSON.stringify(data));
document.getElementById("queryConsole").value = JSON.stringify(data, null, 3);
$('#queryConsole').value = JSON.stringify(data, null, 3);
},
error: function () {
$('#queryOutput').html('Bummer: there was an error!');
},
})