How to pass the Sys ID of the current record from a UI Action into a Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 07:24 AM
I've got the following UI Action that runs on the 'cmdb_ci_business_app' table:
What I'm wanting to do is trigger a flow in flow designer when the user clicks on the UI Action. I'm trying to use the below code to do this:
However, what I've released in my Flow Designer is that I don't want to use the trigger as other business applications could be affected rather than just the current one. I'm wanting my flow to trigger when the user clicks on the UI Action for that one specific application. At the moment, I'm trying to capture the Sys ID of the current business application like below:
I was just wondering if anyone knows where I'm going wrong and what I need to do to pass in the Sys ID of the current record so that I can get flow running for that one particular business application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 07:33 AM
To pass the Sys ID of the current record from a UI Action, you can simply use "current.sys_id" and pass the "current.sys_id" value as input to the flow.
Then in flow designer, you can use the input (the sys_id) wherever required using the data pill picker
And if you want to update the fields in the current record you can do it simply like
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 07:44 AM
ok. For the first part of use "current.sys_id" and pass the "current.sys_id" value as input to the flow, how do I do that and where in my UI Action or flow would I need to make the amendments?