Loading
Feature degradation | Gmail Email delivery failureRead More
Media Cloud
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 Sample Product and Price Data for Advertising Sales Management Summer '24

          Create Sample Product and Price Data for Advertising Sales Management Summer '24

          After you deploy Advertising Sales Management Summer '24, create sample product and price data in your org to test various Advertising Sales Management workflows.

          Managed Package Icon This is an Advertising Sales Management on Managed Package feature. For Advertising Sales Management on Salesforce Platform, see Advertising Sales Management on Salesforce Platform.

          Before you begin:

          To create sample product and price data in Advertising Sales Management:

          1. From Setup, in the Quick Find box, enter Apex Classes and select it.
          2. Create an apex class with the name ASMDesignDataSetup, and copy the contents from the ASM Summer '24 Design Data Setup file.
          3. From the Developer console, run the appropriate code snippets to create sample data in your org. For instructions, see Executing Anonymous Apex Code.

            To create design data for all media types, run this code snippet.

            ASMDesignDataSetup handler = new ASMDesignDataSetup();
            handler.setupAll();

            To create design data for specific media types, run the appropriate code snippet.

            Media Type Code
            Digital media type
            ASMDesignDataSetup handler = new ASMDesignDataSetup();
            handler.setupDigital();
            TV media type
            ASMDesignDataSetup handler = new ASMDesignDataSetup(false); 
            //skip validation which will insert the design time records 
            //even if it's already present in the org.
            handler.setupLinear(); //to insert design data for Linear.
            Print
            ASMDesignDataSetup handler = new ASMDesignDataSetup();
            handler.setupPrint();
            Radio
            ASMDesignDataSetup handler = new ASMDesignDataSetup();
            handler.setupRadio();
           
          Loading
          Salesforce Help | Article