Create the Validate TPM Account Action
Create a custom action that validates if the user has access for a specific Trade Promotion Management (TPM) account. This action makes sure the agent only works on authorized records.
Required Editions
Available in: Lightning Experience Available in: Agentforce 1, Einstein 1, Enterprise and Unlimited Editions with Consumer Goods Cloud Retail Execution and Agentforce for Consumer Goods Cloud add-on licenses |
| User Permissions Needed | |
|---|---|
| To create custom agent actions for TPM Agent: | View Setup and Configuration |
- From Setup, in the Quick Find box, enter Agentforce Assets, and then select Agentforce Assets.
- Click Actions.
- Click New Agent Action.
- From the Reference Action Type dropdown, select Flow.
- From the Reference Action dropdown, select CGCloud: Validate TPM Account.
-
Enter
Validate TPM Accountfor the Agent Action Label field andValidate_TPM_Accountfor the Agent Action API Name field. - Click Next.
-
Configure the action's instructions and variables:
- In the Agent Action Instructions field, enter Validates TPM Account access for the running user.
- In the Loading Text field, enter Loading Account.
-
Under Input, for AccountId:
- In the Instructions field, enter Account Id to get Access levels.
- Select the Require Input checkbox.
- Clear the Collect data from user checkbox.
-
Under Output, configure the following:
- For AccountId:
- In the Instructions field, enter Account Id.
- Clear the Filter from Agent Action and Show in conversation checkboxes.
- From the Output Rendering dropdown, select Text.
- For HasReadAccess:
- In the Instructions field, enter If the user has read access to the account.
- Clear the Filter from Agent Action and Show in conversation checkboxes.
- From the Output Rendering dropdown, select Boolean.
- For HasReadWriteAccess:
- In the Instructions field, enter If the running user has ReadWrite access to the account.
- Clear the Filter from Agent Action and Show in conversation checkboxes.
- From the Output Rendering dropdown, select Boolean.
- For AdditionalMessage:
- In the Instructions field, enter Additional context information about the account.
- Clear the Filter from Agent Action and Show in conversation checkboxes.
- From the Output Rendering dropdown, select Text.
- For AccountId:
- Click Finish.
Did this article solve your issue?
Let us know so we can improve!

