In ServiceNow, the update_guid field in update set data typically contains a sys_id that references the record associated with the update captured in that update set.
What is the update_guid sys_id referencing?
- The
update_guid is the sys_id of the record that was updated/inserted/deleted in the platform as part of the update set.
- For example, if you changed a business rule, the
update_guid would be the sys_id of that business rule.
- If you modified a UI policy, the
update_guid would be the sys_id of that UI policy.
Which table does the update_guid point to?
- It points to the actual record in the table where the update happened, not to the update set record itself.
- For example:
- Business Rule changes:
update_guid references a record in sys_script table.
- UI Policy changes:
update_guid references a record in sys_ui_policy.
- So, the table of the record the
update_guid points to depends on the type of object that was changed.
Your assumption:
"I think it is the update set sysid."
This is incorrect. The update set itself has a sys_id in the sys_update_set table. The update_guid in the update set data points to the item changed within the scope of that update set, not to the update set record.
Summary:
| Field | Points To |
|---|
sys_update_set.sys_id | The update set record itself (sys_update_set table) |
sys_update_xml.update_guid | The changed record's sys_id (varies depending on the affected table) |
How to verify:
- Go to the
sys_update_xml table (this stores each record change info for update sets).
- Find a record.
- Note the
update_guid value.
- Try to find a record with that
sys_id in various tables matching the type of the update.
- For example, if the
name field in the update set record is a Script Include, look in sys_script_include.
If you want to know which table the update_guid belongs to, you can also:
- Look at the
name or table field on the sys_update_xml record to know the table where the update happened.
- Or script: use
GlideRecord to fetch the sys_update_xml record and check its name or table fields.
In conclusion:
- The
update_guid is not the sys_id of the update set itself.
- It is the
sys_id of the record that was updated, inserted, or deleted.
- Its table depends on the updated object type (Business Rule, UI Policy, Script Include, etc.).
Let me know if you want a script snippet to find that out dynamically!