Hi Everyone there,
Could anybody help with below: I want to get, post and put from sugarCRM cloud API using python.
I can make get Contacts work, but the filter just doesn't work...
"OAuth-Token": session["access_token"],
Hi Everyone there,
Could anybody help with below: I want to get, post and put from sugarCRM cloud API using python.
I can make get Contacts work, but the filter just doesn't work...
"OAuth-Token": session["access_token"],
I would recommend to use first_name or last name
{ "filter": [ { "first_name": { "$starts": "Charlotte" } } ], "max_num": 10, "fields": [ "name", "email" ] }
Rodrigo Manara
Sr. Developer
Hi Sophie,
Maybe you could try to specify your call using POSTMAN and define your request ; then use the CODE SNIPPET option to see how you can express this query in your language : learning.postman.com/.../
Best regards,
Fred
Thanks, Fred, I’ll try this
Hi Rodrigo,
Yeah, you're right, when I tried filter by first_name, it worked; but when filter by name, it did not work...
Can you share the reason?
Thank you very much!
Hi Fred,
I tired it, and it is a good resource.
Just one more question please:
I want to update existing record with changing the name, but it fails... could you please suggest how to do that using postman?
Thank you very much!
And, let's say, I have a bunch of records to update, how can I do that in one call. Or do I have to call API every time want to change a record?
Hi Sophie,
You re URL seems wrong. The ID you defined as a Param must replace your :record in your URL.
For mass update, take a look at the Bulk api.
Ben aware that you can access the whole api Doc of your instance by adding rest/v11_4/help at the end of your sugar url in your brosser.
Fred
Name is a combination of 2 vars (first name and last name together ). I normally use first name and last name as you can ensure you get the correct data as well.
Rodrigo Manara
Sr. Developer
Hi Fred,
Can you tell me where i can get the oauth-token please?
Thanks
Jorge Parente oauth-token is fetched from the API call "POST /oauth2/token"
Thanks André Lopes. I will try using the postman to do this post and get the oauth-token!!