Data Action for ID Lookup Exact Match

Hello,

I am trying to figure out how to configure a data action that does a lookup in Salesforce for the exact match of the login provided.
Use case:
We ask customers to provide their email address via a bot. With the email address, we retrieve the login in Salesforce using a data action. However, customers are free to input anything, so it happens that their enter random words, but it still retrieves a login in Salesforce. That is why I am trying to use a data action that would only retrieve the login if the email address provided is an exact match.

Currently, the Request URL template of the data action is:
/services/data/v37.0/search/?q=$esc.url("FIND {$salesforce.escReserved(${input.Username})} IN EMAIL FIELDS RETURNING Login__c(Id, Contact__c)")

Does anybody have insights on how to pull only the exact match?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.