Loading
Set Up Trade Promotion Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create the Retrieve Promotion Measures Action

          Create the Retrieve Promotion Measures Action

          Create a custom action that gets all measures for a promotion across its products. This lets the agent give performance data for a promotion.

          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
          1. From Setup, in the Quick Find box, enter Agentforce Assets, and then select Agentforce Assets.
          2. Click Actions.
          3. Click New Agent Action.
          4. From the Reference Action Type dropdown, select Flow.
          5. From the Reference Action dropdown, select CGCloud: Get Promotion Measures.
          6. Enter Retrieve Promotion Measures for the Agent Action Label field and Retrieve_Promotion_Measures for the Agent Action API Name field.
          7. Click Next.
          8. Configure the action's instructions and variables:
            • In the Agent Action Instructions field, enter Retrieves all measures for a single promotion for all its Products and product levels.
            • In the Loading Text field, enter Retrieving measures.
          9. Under Input, for PromotionId:
            • In the Instructions field, enter Id of the Promotion.
            • Select the Require Input checkbox.
            • Clear the Collect data from user checkbox.
          10. Under Output, configure the following:
            • For PromotionId:
              • In the Instructions field, enter Id of the Promotion.
              • Clear the Filter from Agent Action and Show in conversation checkboxes.
              • From the Output Rendering dropdown, select Text.
            • For ResultMeasures:
              • In the Instructions field, enter Retrieved measures for the promotion. This response will contain up to 5000 data points. If this limit is exceeded a message will be set to inform. Measure data is returned on a tree like structure with root level being the Total Product aggregation. Below levels follow the Product hierarchy levels (product groups) while the last level contains the value for each of the measures.
              • Clear the Filter from Agent Action checkbox.
              • Select the Show in conversation checkbox.
              • From the Output Rendering dropdown, select Rich Text.
          11. Click Finish.
           
          Loading
          Salesforce Help | Article