This lesson will cover the following topics:

02 | The Setup
03 | Preview

01 Getting Started

This tutorial covers how to map a project variable to a URL and how to encrypt Salesforce record IDs so they can be passed through the URL safely.

02 The Setup

Two static variables were created: contactid and encryptedid.

Note: Only static variables can be passed through the URL.

For the variable to be passed through the URL, click on the ellipsis icon and enable Map to URL.

Static variables

 A Salesforce Get action was configured to load a contact's information if the Salesforce Contact ID field is equal to the contactid variable.

Salesforce get action

03 Preview

When you pass a contact ID through the URL, the contact’s details are populated in the fields. An issue with this is that Record IDs can often be similar, this means that a user can change a letter and potentially view another contact’s information.

passing a record ID through the URL

04 Encrypting ID

To resolve exposing the Record ID to users, navigate to your Salesforce account. The Titan package allows you to encrypt any field for your object. This means you can encrypt your record IDs.

You need to simply create a new field on your relevant Salesforce object, and make sure that it is a text type and can contain 150 characters.

Next, navigate to Flows in the Salesforce Setup screen and follow these steps:

1. Click the New Flow button.
new flow button in Salesforce


2. Select Record-Triggered Flow and select Create.

selecting record triggered flow


3. For this example, we have selected the Contact object to trigger when a record is created or updated, and the condition requirements must be met.

select object configuration


4. Click the + Icon in your Salesforce flow.

plus icon in the action flow


5. Select Action.

select action for the record triggered flow

6. Choose the Form_Builder_FT_Encryption_Util action.

7. Give the action a Label.

8. Choose the id as the field_api_name_to_encrypt.

9.  Find your custom encrypted ID field under field_api_name_to_save_encrypted_value.

10. Add the Salesforce object under object_Api_Name.

11. Choose the record id for record_id.

12. Click Done.

13. Save and Activate your flow. When any record on this object is created or updated, the encrypted id will be populated.


configuring the new action

Save and Activate your Flow. When your record is updated, the encrypted ID will populate.
screenshot showing a populated encrypted id

05 Update Conditions

For the Encrypted ID to be passed through the URL, the conditions must be updated to the encrypted account ID field you created.

Map Salesforce fields conditions tab

Now you will be able to pass the encrypted ID through the URL to display the contact information without risking the user accessing another contact’s information.

Example of how the encrypted ID is passed through the URL

06 Got Feedback?

Additional Resources