Import Data from Salesforce Objects to Use in Constraint Models
Import data from a standard or custom Salesforce object to use in a table constraint in
a constraint model. The imported data populates the columns and rows in the table constraint in
CML, and saves you the step of manually entering the data.
Product Configuration Constraints Designer permission set
Only the first 10,000 records with a maximum of 10 custom fields from the Salesforce object
are imported.
In Setup, enter Permission Sets in Quick Find and select Permission Sets.
Select the Constraint Rules Engine Licenseless permission set. If the Constraint Rules
Engine Licenseless permission set for the Platform Integration User isn't available in your
org, contact Salesforce Customer Support.
In the Apps section of the setup page for Constraint Rules Engine Licenseless permission
set, select Object Settings.
Locate and select the object whose data you want to import to a table constraint.
On the Object Settings page for the object, select Edit. Enable Read, Create, Edit,
Delete, View All Records, and View All Fields permissions, then save your changes.
To confirm that the permissions are enabled, open Object Manager and select the object
whose data you want to import.
Select Object Access. On the Permission Sets tab, confirm that the Constraint Rules Engine
Licenseless permission set is listed, with Read, Create, Edit, and Delete permissions enabled.
To load the imported data into a constraint, in CML Editor, write an expression in the
constraint model code. Use the SalesforceTable keyword and include the table
name and column names.
Example
In this example, data is imported to a table with four
columns. The suffix __c indicates that the data is from a Salesforce custom
object.
Note If the table data is deployed when the constraint model is activated, and you add records
to the table after constraint model activation, to fetch the new table data at runtime you must
deactivate and reactivate the constraint model.
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.