Fetching Current flow's Execution Link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 04:20 AM
Hi,
Can anyone help me with the process to attach the flow execution link in the currently running flow. I need this to update worknotes on an incident if flow got any error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:03 AM
so if a record on table has any flow running on it; you need to see the flow context for that?
information about flow context is stored in table "sys_flow_context"
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:15 AM
Robert Fedoruk created a you tube video for this: https://www.youtube.com/watch?v=Br5p7inqbXw
Although creates a subflow to create a record when an error occurs, you can use the information as well to create your worknote, including a clickable link (if your instance allows that).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2024 11:33 PM
Hi All,
Just a slight enhancement on the video which I implemented.
On your Main Process:
- Set Flow Variable - [variable name : main_flow_id]
- Initialise this variable
- var main_flow_id = FlowScriptAPI.getContextID();Then pass main_flow_id into the subProcessNo need then for the lookups in the subProcess