SugarCRM attitude for getting contacts from active opportunities
I am working on sugarCRM, I need to get all contacts from active opportunities. I can link contacts with single post capabilities using the below url
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
But I must contact him for all active opportunities. Can anyone help me please .... Thanks in advance
source to share
you go to the right, the url will provide:
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
It will provide all the entry associated with these capabilities.
But you want all contacts active opportunities
-
First you need to click on "API for Capabilities" which is active:
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/filter [0] [status] [ $ in] [] = active
Similarly, you can apply a filter.
2. Now after that you will get an array on Opportunities, so use loop get get Opportunities id and click on your url.
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
You can make Dynamic according to your needs. Hope this helps you.
source to share