Encrypted Check (4 min)
01 Getting Started
This tutorial covers setting up an encrypted on top of the SmartV process.
This ensures your user is authenticated and is authorized to certain parts of your project.
This will be achieved by passing an Encrypted ID on the page URL and comparing it to the logged-in record encrypted ID.
Refer to the Record ID encryption process in the following tutorial.
02 Creating Variables
To pass the allowed encrypted Id on the page URL create a custom variable.
1. Select the project settings gear icon.2. Select the Tools tab and click the Custom Variables gear icon.
3. Click on the Static tab and add a new custom variable. For this example, we named the variable enc_id.
4. Select the Kebab menu and enable the Map to URL checkbox. Click Apply.
03 Setting a SmartV Parameter
2. Select the User Access tab and click the SmartV gear icon.
3. Navigate to the Parameters step and create a New Parameter. Give your parameter a name and choose the corresponding Salesforce field using the dropdown.
04 Configuring a Page Load Every Time Action
2. Click the Configure Actions button from the submenu.
3. Select the Every Time tab and click the Start + icon.
4. Choose Condition and click Next.
5. Configure the following condition: if the encrypted id does not equal the SmartV encrypted id. Click Next.
6. Add a Tag and click Insert.
7. Click the Then + icon and choose Affected Element. Click Next.
8. Select the elements you wish to secure- you can choose to hide or replace these elements for non-authorized users. We recommend to add a text or message notifying the user he is not authorized to review this data.
Click Next.
9. Add a Tag, click Insert, and click Apply.
While testing via Preview- map the authorized encrypted record ID to the project URL.
If the logged-in record id doesn't match the URL one, the secured data should be hidden/replaced, as was set-up on the project.