How to Disable all Campaign Workflows at the Same Time | Community
Skip to main content
June 22, 2020
Solved

How to Disable all Campaign Workflows at the Same Time

  • June 22, 2020
  • 1 reply
  • 1967 views

Have a client who has hundreds of campaigns and they want to be able to Disable ALL of them easily, and then only turn on a handful during particular weather events.  Can anyone help.  We thought maybe we could reset a value in a table using a Stored Proc - want to make sure it is the right table (first of all).  I have heard discussions about writing a custom Technical Workflow to do this but I never knew how that ended.  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anita_punmiya

Hi @bd_chicago :

 

You can create a function using JS to fetch the workflow ids of all the workflows in running(started/restarted) state for your specific campaign/program folder holding all the client campaigns and use these workflow ids to stop them at one go using xtk.workflow.Stop() .

 

Hope this helps.

 

Thanks.

1 reply

Anita_punmiya
Anita_punmiyaAccepted solution
Level 5
June 23, 2020

Hi @bd_chicago :

 

You can create a function using JS to fetch the workflow ids of all the workflows in running(started/restarted) state for your specific campaign/program folder holding all the client campaigns and use these workflow ids to stop them at one go using xtk.workflow.Stop() .

 

Hope this helps.

 

Thanks.

AdobeCampaignProxd
Level 2
November 21, 2024

Hello,

 

Can we have a code example of this? Im genuinely interested in building a workflow for this manner, can someone paste a JS code or link with mode guidance.

 

Thank you