Loading
Feature degradation | Gmail Email delivery failureRead More
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 Get Promotion BO API Workflow Input Schema Action

          Create the Get Promotion BO API Workflow Input Schema Action

          Create a custom action that gets the required structure (schema) for a promotion business object (BO) API workflow.

          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 Apex.
          5. From the Reference Action Category dropdown, select Invocable Method.
          6. From the Reference Action dropdown, select Get BO API Workflow Schema.
          7. Enter Get Promotion BO API Workflow Input Schema for the Agent Action Label field and Get_Promotion_BO_API_Workflow_Input_Schema for the Agent Action API Name field.
          8. Click Next.
          9. Configure the action's instructions and variables:
            • In the Agent Action Instructions field, enter Retrieves the schema of the Promotion JSON object for the given BO API Workflow.
            • In the Loading Text field, enter Working...
          10. Under Input, for workflowActionName:
            • In the Instructions field, enter Promotion BO API Workflow name to get the schema for.
            • Select the Require Input checkbox.
            • Clear the Collect data from user checkbox.
          11. Under Output, for schema:
            • In the Instructions field, enter Schema for BO API Workflow. PromotionJSON payload must adhere to this schema.
            • Clear the Filter from Agent Action and Show in conversation checkboxes.
            • From the Output Rendering dropdown, select @apexClassType/cgcloud__c__TPM_BOAPI_GetPromotionSchema$SchemaDefinition.
          12. Click Finish.
           
          Loading
          Salesforce Help | Article