Loading
Prepare for Email to Become the Default Login ExperienceRead More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Activate a Follow-on Promotion

Activate a Follow-on Promotion

A follow-on promotion is a promotion that is active after a previous promotion's commitment duration ends. To indicate within a promotion the next promotion to begin after the initial promotion ends, in the Follow-on Promotion field, search for and find the promotion that follows.

For more information, see Completing Basic Promotion Settings.

To ensure the follow-on promotion is activated after the previous promotion has expired, you must run the PromotionExpirationBatch batch job. You can schedule this job to execute according to your company's workflow. For example, if you have many follow-on promotions, you might want to schedule this job on a daily basis.

  1. From the User menu, choose Developer Console.
  2. From the Debug menu, choose Open Execute Anonymous Window.
  3. Paste the following statement into the Enter Apex Code dialog box.
    vlocity_cmt.PromotionExpirationBatch peb = new vlocity_cmt.PromotionExpirationBatch(); 
    ID batchprocessid = Database.executeBatch(peb, 1);

    Or, if you want to use a specific date, use the following statement and substitute the example date (2017/05/19) with another date.

    vlocity_cmt.PromotionExpirationBatch peb = new vlocity_cmt.PromotionExpirationBatch(‘2017/05/19’); 
    ID batchprocessid = Database.executeBatch(peb, 1);
  4. Select the statement.
  5. Click Execute Highlighted.
  6. Close Developer Console.
 
Loading
Salesforce Help | Article