Flow Designer Flow's action storage table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:00 AM - edited 09-14-2023 06:00 AM
Just as workflow variables are being stored in the sys_variable_value table, I would just like to ask where the actions - Ask for Approval value get stored in the servicenow?
I need to build a script which will validate if any group approval has been used in the flow designer before deactivating the group.
Thanks,
Rooma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 05:24 AM - edited 09-15-2023 06:07 AM
Hi @Rooma1 thanks for elaborating , the table which stores these individual action activities of a flow is [sys_hub_action_instance] , this stores individual activities defined in a flow , below is what you are looking for 'Flows where Ask for Approval Action has been used'
Additionally you can append - /now/nav/ui/classic/params/target/sys_db_object_list.do%3Fsysparm_query%3Dsys_update_nameISNOTEMPTY%255EnameSTARTSWITHsys_hub_
This lists all tables flow designers uses
Please mark my answer as correct and helpful if it solved your question

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2023 02:59 AM
Which is what I replied a couple of days ago, you could just have referenced to my answer... 😀
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 09:52 PM
I am trying to find specific flows and flow actions where there has been group approval definition for specific group. Which table should I query for the sys_id of the group or the name of the group to find them?
[sys_hub_action_instance] table doesn't have reference to the group definition tables.
Thanks,
Rooma
Thanks,
Rooma

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 11:51 PM
I don't think you can get that data without knowing exactly what you're after.
I you have chosen a static group, then you'd be able to find a reference to the SysID of the selected group, but if it's dynamically set (through data pills) you cannot extract the group ID.
See examples below;
In the first image, I've set the ask for approval to a specific group.
In the second image, I've set the ask for approval dynamic through data pill.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:40 AM
Hi,
The actions themselves are stored along with all the other flow actions (i.e. not only the approval action) in the table:
[sys_hub_action_instance]