Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSalesForceInput Query Using Context Variable

Dear All,
I tried to use a context variable in a tSalesForceInput query, so the where clause will be dynamic.
Could you help with the right syntax ?
Here is the syntax i have used, but it doesn't wotk.
"select u.Id, u.HermesAgentId__c from User u Where u.HermesAgentId__c = '+ context.GENERIC_AGENT_ID +' "
All the best,
Anzar.
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi Anzar
Try this.
"select u.Id, u.HermesAgentId__c from User u Where u.HermesAgentId__c = ' "+ context.GENERIC_AGENT_ID +" ' "

Regards,
Pedro
Anonymous
Not applicable
Author

Hi,

 

I was going through this post and i have used in the below way. I know it is a very old post, just thought of sharing the information.

 

" SFDCFieldName=\' "+context.VARIABLENAME+" \' "

 

Thanks,

Goutam