Updated: May 19, 2021 12:40pm

Delete Promotions

Schedule Automatic Removal of Inactive Promotions
Prism users can schedule the deletion of promotions to occur on a regular basis. This provides an easy way to remove promotions that are no longer needed. When scheduling the "Delete Promotions" task, you 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.
Schedule the "Delete Promotions" task at all locations that use promotions. By adjusting the payload, you can schedule the task to run as often as needed.
Here is the key information for the 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