How to copy workflow activity from one workflow to another

angel_jimenez
Mega Expert

Hi community!

Just the same way it is possible to copy (duplicate) a workflow activity inside the same workflow, I'm wondering if it is possible to copy a workflow activity into another workflow.

Any idea?

Best Regards!

1 ACCEPTED SOLUTION

It would be fantastic as this would save us a lot of time. As this is not currently possible OOTB, I have opened an idea in ServiceNow idea portal:

https://community.servicenow.com/community?id=view_idea&sysparm_idea_id=344e8bb6db284c506064eeb5ca96...

Anyone considering this as an useful improvement, please like the idea ðŸ˜‰

View solution in original post

5 REPLIES 5

Omkar Mone
Mega Sage

Hi 

Yes we can do that with the help of wf_acitivity_defination table, Please have a look at the below links :-

https://community.servicenow.com/community?id=community_question&sys_id=e88fb2e9db58dbc01dcaf3231f96...

Check this docs link as well :-

https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/using-workflows/task...

 

Regards,

Omkar Mone

www.dxsherpa.com

Hi Omkar, thank you for your reply.

That UI Action is to copy the activity definition, but I want to copy the workflow activity (the activity box of the workflow, not the definition). Maybe looking into the workflow xml it is possible but I don't get with the solution to this...

xiaix
Tera Guru

Very good question.  It'd be nice if we could simply drag-n-drop a couple of selected activities from one checked-out workflow and drop them onto a second checked-out workflow.

This would save a ton of time re-writing a lot of code/logic.  Although, angel.jimenez, I know it's not possible OOB to do so.  However, perhaps there's someone out there who's written a tool/script to do such a thing?  If not, I'll have a crack at it.

It would be fantastic as this would save us a lot of time. As this is not currently possible OOTB, I have opened an idea in ServiceNow idea portal:

https://community.servicenow.com/community?id=view_idea&sysparm_idea_id=344e8bb6db284c506064eeb5ca96...

Anyone considering this as an useful improvement, please like the idea ðŸ˜‰