Create a new Flow Designer action called “Generate Link”, which generates a direct URL to a given record in ServiceNow.
The action should accept a record reference (table + sys_id) and an interface type (Core UI, Workspace, or Portal) to produce the appropriate link format.
This feature allows developers and process owners to dynamically build shareable links inside flows—for example, sending record links in email notifications, chat messages, or task updates.
Example
Inputs:
table (String, required) — The name of the table where the record resides (e.g. incident, hr_case).
sys_id (String, required) — The sys_id of the record to link to.
ui_type (Choice, optional) — The desired interface for the link:
core → Standard UI (default)
workspace → Target Workspace experience
portal → Default Service Portal view
Behavior:
Based on the selected ui_type, the action constructs the appropriate URL.
Examples:
| UI Type |
Example URL |
| Core UI |
https://<instance>.service-now.com/incident.do?sys_id=abcd1234 |
| Workspace |
https://<instance>.service-now.com/now/workspace/agent/record/incident/abcd1234 |
| Portal |
https://<instance>.service-now.com/sp?id=form&table=incident&sys_id=abcd1234 |
Create a new Flow Designer action called “Generate Link”, which generates a direct URL to a given record in ServiceNow.
The action should accept a record reference (table + sys_id) and an interface type (Core UI, Workspace, or Portal) to produce the appropriate link format.
This feature allows developers and process owners to dynamically build shareable links inside flows—for example, sending record links in email notifications, chat messages, or task updates.
Example
Inputs:
table(String, required) — The name of the table where the record resides (e.g.incident,hr_case).sys_id(String, required) — Thesys_idof the record to link to.ui_type(Choice, optional) — The desired interface for the link:core→ Standard UI (default)workspace→ Target Workspace experienceportal→ Default Service Portal viewBehavior:
Based on the selected
ui_type, the action constructs the appropriate URL.Examples:
https://<instance>.service-now.com/incident.do?sys_id=abcd1234https://<instance>.service-now.com/now/workspace/agent/record/incident/abcd1234https://<instance>.service-now.com/sp?id=form&table=incident&sys_id=abcd1234