我正在尝试在MULE Salesforce连接器的where子句中使用流变量。但我得到如下错误
使用
查询#["Select username__c,Group_Name__c from Team_Mapping__c where username__c = " +flowVars.userflowvar]
错误:
[MalformedQueryFault [ApiQueryFault [ApiFault exceptionCode='MALFORMED_QUERY'
exceptionMessage='
Team_Mapping__c where username__c = [username@hotmail.com]
^
ERROR at Row:1:Column:74
Bind variables only allowed in Apex code'
]
row='1'
column='74'
答案 0 :(得分:1)
啊,我想我是自己找到的。它需要在where子句中作为字符串传递。
#["Select username__c,Group_Name__c from Team_Mapping__c where username__c = '"+flowVars.userflowvar+"'"]