[英]Returning all Salesforce contacts associated with an account via query from third-party site
I'm using Survey Gizmo and I want to pull in all contact emails associated with an account. 我正在使用Survey Gizmo,并且希望提取与帐户相关联的所有联系电子邮件。
This query works, but it only pulls in the first contact and I need them all: 此查询有效,但仅引入第一个联系人,而我全部需要它们:
SELECT Id,Contact.Email FROM Contact WHERE AccountId = 'Insert_Account_Id_Here'
How can I pull in more than one contact? 如何引入多个联系人?
If that's not possible, is it possible to specifically pull in contact "N"? 如果不可能,是否可以专门拉入触点“ N”? Then, question 1 could pull in contact 1, question 2 could pull in contact 2 and so forth.
然后,问题1可以拉动触点1,问题2可以拉动触点2,依此类推。
Thanks... I'm new to this so let me know if that was unclear. 谢谢...我是新来的,所以请让我知道是否不清楚。
从Acount中选择id,(从联系人中选择电子邮件),其中id =:'acountLd代表(联系人con:acc.Contacts){con.Email ....}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.