I want to take a backup of the Workflow in Service Now but the problem is it doest not take the backup of the Table and its Structure with its respective form.Can anyone help me with how can we back up the tables and its stucture????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2014 10:38 PM
I want to take a backup of the Workflow in Service Now but the problem is it doest not take the backup of the Table and its Structure with its respective form.Can anyone help me with how can we back up the tables and its stucture????

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2018 11:26 PM
Hi,
Please create the update set, so that all your data dictionaries and table creation will gets captured in the update set.
Take the back up of the update set as xml. So that whenever you import the updateset xml it will create the table with the dictionary entries.
If you create the records in the corresponding created table, export those record as xml.
1. Import the update set xml
2. Import the record xml.
Note: Updateset will be better option to take the backup of table and its corresponding fields.
Please mark correct, if my answer helps you out! 🙂
Thanks,
Priyanka R

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2018 11:37 PM
You can take the xml export of the workflow in ServiceNow from wf_workflow_version table. There is an out of the box button called Export Workflow on wf_workflow_version but it is restricted to maint role. You can either remove the role temporarily from the UI action or use the script from the button to export the workflow.
Below is the script from the button. You would need to replace the workflow version sys_id for the workflow you are trying to export.
var url = new GlideURL('export_workflow_version.do');
url.addParam('sysparm_sys_id', 'f3a7266ddb460300a8f99ee8db96190a'); //replace the sys_id here.
var frame = top.gsft_main;
if (!frame)
frame = top;
frame.location = url.getURL();