Comments on: Exporting Graphical Workflows in One Step https://servicenowguru.com/system-definition/exporting-graphical-workflows/ ServiceNow Consulting Scripting Administration Development Thu, 07 Mar 2024 18:01:48 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jim Pisello https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7963 Fri, 14 Jul 2017 16:32:48 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7963 In reply to Chandran.

Hi Chandran,

There is no easy way to do that, due to the number of related tables that would also need to have records copied. The way I’ve done this in the past is simply to open the two workflows in the workflow editor canvas. Add a new activity of the correct type to the workflow, then manually configure the new activity so that it mirrors the existing one.

]]>
By: Chandran https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7962 Thu, 18 May 2017 18:11:36 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7962 Is there a way to copy just a single workflow activity from one workflow to another?

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7961 Wed, 19 Apr 2017 13:43:03 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7961 In reply to Avi Goli.

I haven’t seen a way to do that yet. Will let you know if I find out.

]]>
By: Avi Goli https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7960 Tue, 18 Apr 2017 21:40:06 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7960 Hi Mark,

Any idea how to copy a workflow in a script (server, not client).. the same as we do in the UI, but I would like to be able to copy workflow (by name or sys_id) to a new (by a new name) … The SN version is Helsinki or/and Istanbul .. Is there any SN API/Processor I can use? something like this maybe: com.glideapp.workflow.ui.ng.NGWorkflowProcessor (java) …

]]>
By: Mark https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7959 Thu, 23 Jun 2016 19:57:10 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7959 By the way, I saw no evidence that pop-ups were blocked. I tried it in Chrome, Internet Explorer, and Firefox, all with the same result.

]]>
By: Mark https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7958 Thu, 23 Jun 2016 17:55:22 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7958 I tried using the code you published for Exporting Service Catalog Items in One Step, and it works great!

But when I tried this script, and clicked on the Export to XML link in my workflow, it didn’t bring up the window to ask me where to save the file.
Do you have any advice for me?

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7957 Wed, 01 Jun 2016 16:55:54 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7957 In reply to Andrew Westervelt.

Thanks Andrew! I’ve added this to the script above as well.

]]>
By: Andrew Westervelt https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7956 Wed, 01 Jun 2016 15:44:30 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7956 For anyone who has had issues with subflow activities not being exported correctly, insert the following code as line 22:

exporter.addRelatedList(‘wf_workflow_instance’, ‘workflow_version’);

You’ll still need to export the additional workflow when moving between instances, but at least the relationship will stay intact.

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7955 Sat, 15 Aug 2015 12:21:24 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7955 In reply to Ravi.

You’re welcome Ravi!

]]>
By: Ravi https://servicenowguru.com/system-definition/exporting-graphical-workflows/#comment-7954 Sat, 15 Aug 2015 10:22:36 +0000 https://servicenowguru.wpengine.com/?p=3096#comment-7954 Mark,
This was awesome. You saved me a lot of time in finding the data flow and fixing an issue I am working on.
Apparantly, we had someone who didn’t bother to capture the updates in a proper update set and we ended up with a complex workflow developed successfully, but not exportable to the production.
Many thanks.
regards,
Ravi

]]>