Self Detailing 2.0: Using Secure JS Bridge Method
The JS Bridge methods for exchanging data with Salesforce are disabled for Self Detailing meetings because an anonymous user can access data.
In this case:
-
Use the secure ctm.secureQuery method instead of ctm.query.
-
Create the CTM Settings record with the Remote Detailing Request record type.
To create a CTM Settings record:
-
Go to the CTM Settings tab and click New.
-
Select the Remote Detailing Request record type.
-
Specify the following:
-
In the Criteria field, add the SOQL query, for example, SELECT Id FROM Account WHERE Name like{!Name} and Type ={!Type}
-
In the Label field, specify the label of the record, for example, Retrieve_Account.
-
-
Click Save.
The setup is complete.