AnsweredAssumed Answered

app.api.call and buildUrl Filter list of results in v7.6.1

Question asked by gui gui on Jun 20, 2016
Latest reply on Jun 21, 2016 by Tevfik Tümer

Hello everyone,

 

I wish to filter my list of results with the function app.api.call().

I know how to filter by Id ( app.api.buildURL('myCustomModule/Id') ) but if I want to filter by another field (custom field psc).

Here is my code of my last attempt (after searching on web) which is not working :

 

 

                             var urlc = app.api.buildURL('myCustomModule'), post_data = {psc: '3'};

                             app.api.call('GET', urlc, post_data, {

                                 success: function (data) {

                                     // my logic

                                 }

                             });

 

Thanks for your answer !

 

Best regards.

Outcomes