AnsweredAssumed Answered

Sugar CRM 7.6 Filter JSON

Question asked by nupurgupta nupurgupta on Oct 15, 2015
Latest reply on Oct 15, 2015 by Pedro Bazan
I am writing a wrapper to call the SugarCRM 7.6 Rest API. I am first trying to construct the JSON for the filter, and have not been able to do so. I am trying a POST as

http://{url}/rest/v10/Contacts/filter

And I pass a JSON with all the parameters. I have a filter object, and it looks like - 

[{"name":"Jaime"}]

This does not work. If I do a GET
{url}/rest/v10/Contacts?filter[0][name]="Jaime"&fields=full_name,account_name

That works. So it looks like I am not formulating the JSON correctly. Any ideas please?

Outcomes