- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 07:15 AM
Is there a way to change the Table of a Workflow after its already been created/published? It appears to be read only.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2018 02:57 PM
So... was looking at this just today. Checked out the Workflow, Table field clearly looks read only...
But being the stubborn old curmudgeon that I am... I clicked the field anyway. To my shock and awe, a full 20 seconds later, the list of tables popped up.
SO... there's that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 07:18 AM
Hey Lisa,
CHECKOUT that workflow and do the changes then PUBLISH IT again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2017 07:20 AM
I have it checked out but its still a read only field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 11:18 AM
I have the same question. The Requested Item workflow I copied can't be changed to another table. The only table in the choice list is sc_req_item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 11:57 AM
You can't change it on the form if the Workflow is already set to a couple special tables like Requested Item or SLA, but you can change it behind the scenes. Use the "Workflow Versions" Module to filter down the list and display the new Workflow you've copied:
You can use one of these tools to help you generate the proper GlideRecord script to update it:
"Xplore GlideRecord Script" Tool
"Preview in Background Script" Tool
"Preview GlideRecord Script" Tool
You'll end up with a script similar to this:
(function() {
var gr = new GlideRecord('wf_workflow_version');
gr.addEncodedQuery('checked_out_by=javascript:gs.getUserID()^ORpublished=true^name=Test - Catalog Item')
//gr.setLimit(100);
//gr.setWorkflow(false);
//gr.autoSysFields(false);
gr.query();
while (gr.next()) {
gr.table = "incident"; //or whatever table you need
gr.update();
}
})();
Just add lines 9 and 10 to update the table name and you should be good to go. You can run the script in the Background Scripts page or James.Neale's excellent Xplore tool.