Update custom activity in a workflow

aaronliprime
Tera Contributor

Hi,

I have a lot of custom PowerShell activities in my workflow. The problem is the activities in my workflow don't update to the new version when I

update the custom activities themselves. Is there a way to replace an old version with the new one without deleting the old one and adding the new one?

Thanks

7 REPLIES 7

chadlockwood
Kilo Sage

Aaron,


When you publish changes to your custom activity, the activity will appear with an orange/yellow/brownish band in the workflow. To update:


  1. Checkout the workflow
  2. Right-click the activity and select Update Activity
  3. Publish the workflow

So the activity was yellow before I checked out the workflow, but it turned white once I checked it out. I right clicked on the activity and don't see Update Activity. The activity also has a duplicate set of exit conditions.


update activity.jpg


What version of ServiceNow are you on? Not sure about the duplicate conditions, but I'm guessing that your custom activity is already updated in your workflow. Do you have both the custom activity and the workflow checked out at the same time?


This is Istanbul and yes they're both checked out at the same time. Am I not supposed to do that?