Use dynamic variables in the SOQL filter condition field to generate metadata filtering
data customized to each user. Life Sciences Cloud replaces these variables at runtime with the
appropriate user or territory values, enabling dedicated data access without hardcoding
values.
Required Editions
Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions with Life
Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the
Life Sciences Customer Engagement managed package.
Here's the list of all the supported dynamic variables.
Dynamic Variable
Purpose
Where to Use
Example
{USER.Territory}
Download data using the territory name. The variable is replaced by the user’s
territory name dynamically.
Any object
Territory2.Name = ‘{USER.TERRITORY}’
{USER.ID}
Downloads data using the user ID. The variable is replaced by the logged-in
user’s ID dynamically.
Any object
CreatedById = ‘{USER.ID}’
{USER.TERRITORYID}
Downloads data using territory ID. The variable is replaced by the user’s
territory ID dynamically.
Any object
Territory2Id = ‘{USER.TERRITORYID}’
{OT2A.OBJ.IDS}
Downloads accounts based on territory. The mobile app first downloads Object
Territory to OT2A records, then retrieves only the account IDs shared with the
user’s territory.
Account object only
AccountId IN ({OT2A.OBJ.IDS})
{Account.IDS}
Ensures that related records are downloaded only for accounts already present in
the mobile app. Use it as a combination as {Account.IDS} AND {OT2A.OBJ.IDS} for
territory-based data access.
Using them together guarantees that related objects are downloaded correctly,
specifically ensuring that related entity downloads are limited to accounts
already present on the mobile device. They can also be used independently based on
the specific data synchronization requirements.
Any object related to accounts
Account IN ({ACCOUNT.IDS})
{STI.OBJ.IDS}
Makes sure the mobile app downloads the device sync transaction records to
resolve offline unique IDs.
DeviceSyncTransactionRecord object only
OperationType = 'insert' AND OfflineUniqueIdentifier IN ({STI.OBJ.IDS})
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.