简体   繁体   中英

How to use inner query to fetch data from salesforce to mule?

I wrote below query to fetch data from salesforce but getting error like "Unknown error parsing query"

select Email,Id from contact where Email in (select b.Email from contact as b group by b.Email having count(b.id) < 2 limit 1000)

inner query alone retrieving the set of mail Ids, please suggest.

Are you sure the issue is not related with the query / organisation ?

Using SOQL workbench --> https://workbench.developerforce.com

and getting this error:

MALFORMED_QUERY: (select b.Email from contact as b group by b.Email having count(b.id) ^ ERROR at Row:1:Column:78 expecting a right parentheses, found 'group'

You can first check your query on Salesforce using developer console if its working or not.

If its returning required result in Salesforce then it will work in Mulesoft as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM