Updated: December 10, 2021 8:22am

Schedule Deactivation, Deletion of Promotions

Prism users can schedule the deactivation and deletion of promotions to occur on a regular basis. This provides an easy way to remove promotions that are no longer needed.
There are two special API endpoints that can be configured for deactivating and/or deleting promotions. These API endpoints work together to help keep the list of promotions from being cluttered with promotions that are no longer needed:

  • When scheduling the "Deactivate Promotions" task, target for deactivation those promotions that are a certain number of days past the End Date for the promotion (as defined in the promotion's Activation Details).
  • When scheduling the "Delete Promotions" task, target for deletion promotions that have been inactive for a user-defined number of days. The user defines the "number of days inactive" in the task payload. Any promotions that have been inactive for that number of days (or more) will be removed from the database.

By scheduling the deactivate/delete promotions tasks, users can ensure that promotions are deactivated and deleted on a regular basis, making it easier for users to work with the list of active promotions only.
Schedule the "Deactivate Promotions" and/or "Delete Promotions" tasks at all locations that use promotions. By adjusting the "Frequency" setting, you can schedule the task to run as often as needed.
Here is the key information for the "Deactivate old promotions" task":
Action end point - /v1/rpc
Action Payload = [{"Params":{"Days":"3"},"MethodName":"PCPromoDeactivatePromo"}]

Here is the key information for the "Delete deactivated promotions" task:
Action end point = /v1/rpc
Action Payload = [{"Params":{"Days":"2"},"MethodName":"PCPromoDeletePromo"}]

This payload will delete promotions that are inactive for 2 days or more.
When defining the task, the user also enters a Start Date, frequency, timeout, workstation, etc.
Sample Scheduler task for deleting promotions that are inactive for 2 days or more:
Delete promotions task in TTK Task Scheduler

Search Documentation