How do I pass the Sys ID of the current Business Application in a UI Action to a Flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 08:09 AM
I've got a UI action called 'Inherit parent BIA outcomes' on a business application form:
The code within the UI Action is:
Can anyone guide me on what I need to do pass the Sys ID of the current Business Application into my flow so that the flow runs when the user clicks on the UI Action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 08:53 AM
The question comes down to, what exactly you're trying to accomplish in clicking, "'Inherit parent BIA outcomes". In clicking, does it update the record itself? Does it update a child record? Does it create a new record?
Regardless, I think using GlideAjax and a script include makes more sense, if you're going to be updating any data within the server. Within the Script Include, you can query any tables/records within the server and update as deemed necessary.
If you've never done a glideAjax before this is a really helpful resource to walk you through - https://www.servicenow.com/community/developer-articles/glideajax-example-cheat-sheet-updated/ta-p/2...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 12:09 AM
Hi @Gaspy By clicking on 'Inherit parent BIA outcomes', it updates the existing business record that the UI Action is coming from. It does also require approvals, which is why I've done it as a flow designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 01:40 AM
Can you check your earlier question? Seems you marked your own response as correct
How to apply a SYS ID from a piece of code within the Look Up record action of flow designer?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 01:41 AM
unfortunately you cannot pass inputs to flow.
You can only do this with subflow.
So please create a subflow from your existing flow and then pass the input
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader