UI Action to Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 09:01 PM
Hello All,
Is there a way to pass the data from dialog box to flow designer?
I want to pass the sysid of user selected from dialog box to the flow designer and trigger the flow when click ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 11:00 PM
@Ankur Bawiskar do you have idea on this? Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 11:08 PM
you can trigger flow via script and pass the user sysId as input to flow
where are you stuck?
From the UI page you have 2 options
1) use UI page client script and use GlideAjax and add the code to script include function
2) use UI page processing script directly to use the server side code
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-21-2024 11:44 PM - edited 02-21-2024 11:46 PM
Hello @Ankur Bawiskar , this is my script in Processing Script:
I leave the Client Script blank.
This is my HTML:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 01:19 AM
are you sure you are sending the sysId of record correct to that UI page?
are you sure you are getting the approver sysId correctly?
First debug that and it will help
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-25-2024 07:48 PM - edited 02-25-2024 08:05 PM
@Ankur Bawiskar , yes i debug using the alert and it gives correct sysid's that i need.
And i can't update the value on Approver field using UI Page' client script or process script.
But using flow designer i can update the approver value. I'm stuck with how to pass the value from dialog window to FD.
I will do more research.