我正在研究 sugarCRM,我需要从活跃的机会中获取所有联系人。我可以使用以下网址将联系人与单条记录的机会联系起来
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
但我必须让他获得所有有效机会的详细联系信息。 谁能帮帮我吗.... 提前致谢
最佳答案
你走对了,网址提供者:
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
它将提供与该机会相关的所有记录。
但您想要所有活跃机会的联系人
首先您需要点击 API for Opportunities,它是活跃的:
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/filter[0][status][ $in][]=active
像这样你可以应用过滤器。
2.现在,您将获得关于机会的数组,因此将使用循环获取机会 ID 并点击您的网址。
https://xxxxxxxx.trial.sugarcrm.eu/rest/v10/Opportunities/5ae1907a-9408-178f-87d6-523cc7d679b6/link/contacts
您可以根据需要制作动态。 希望对您有所帮助。
关于java - SugarCRM 关系可从活跃的机会中获取联系人,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43200107/