How to move the workflow from one instance to other by XML(not updateset)?

snehalmadakatti
Mega Expert

Hi There,

Can any one help on how to move the workflow from one instance(a) to other instance(b)?

Note: I dont want to move the workflow by updateset and I know as per best practice we should move via updateset but I want solution via xml only.

I have tried to take the xml backup of all the following related tables of workflow and imported to other instance(b) but i am not able to see the workflow in workflow editor. I didnt follow any sequence while uploading the xml's so seems due to this issue is happening. Can anyone suggest on this how to fix...

1.wf_workflow_version

2.wf_stage

3.wf_activity

4.wf_condition

5.wf_transition

6.wf_workflow_instance

I got this list of wf related tables from the post :https://www.servicenowguru.com/graphical-workflow/exporting-graphical-workflows/

Thanks in advance.

Regards,

Snehal M

1 ACCEPTED SOLUTION

Ok, the table for that is "sys_variable_value".

Once data of this table is migrated scripts will appear. 


Raghav
MVP 2023

View solution in original post

13 REPLIES 13

RaghavSh
Kilo Patron

In these 6 tables, i think the main table wf_workflow is missing.

The order should not be a problem as the records will be related on basis of sys_id.

After migrating records from wf_workflow table, it should be visible in workflow editor. 

Also check for domain, if you have domain separated instance. 


Raghav
MVP 2023

Hi Raghav,

I have moved xml of wf_workflow. I can now see the all the workflows. But when the wf activities are empty/blank.

Eg of one of the activity from the wf:

find_real_file.png

Ok, the table for that is "sys_variable_value".

Once data of this table is migrated scripts will appear. 


Raghav
MVP 2023

Hi Raghav,

It worked. I imported xml of 'sys_variable_value' and now i can see the scripts in the activities.

Thank You so much!..You are Awsome..

Regards,

Snehal