How to troubleshoot server side issues when Flows are used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 05:23 AM
Previously when business rules were used, one can troubleshoot the server side issues using debug module.
Now many people in the team ate using FLOWS instead of business rules.
Now how to troubleshoot server side issues?
Ex - upon saving a form, some Flow is updating few fields.. need to know which Flow is that ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 05:46 AM
Hi, @Suggy,
Currently no way to check which flow is running on table by OOB design. However using below script you can determine which flow running on certain table.
var grActionInstance = new GlideAggregate('sys_hub_action_instance');
var strTableName = 'wm_task'; //replace with your table name
grActionInstance
.addJoinQuery('sys_variable_value', 'sys_id', 'document_key')
.addCondition('value', strTableName);
grActionInstance.addAggregate('GROUP_CONCAT_DISTINCT', 'flow');
grActionInstance.groupBy('flow');
grActionInstance.addQuery('flow.sys_class_name', 'sys_hub_flow')
grActionInstance.query();
while(grActionInstance.next()) {
gs.info(
'[{0}]\t{1}',
grActionInstance.flow.active ? 'active' : 'inactive',
grActionInstance.flow.name
);
}
For more resources regarding Flow designer troubleshooting, refer this link.
Hope it helps. Kindly mark helpful/accepted if it helps.
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 06:01 AM
Hi @Suggy ,
If u are confident that after saving the form some flow is getting executed & changing the value u can perform the below thing,
After saving the form u can navigate to All context from filter navigator where it stores information related to the workflow/flow designer which has been executed. Sort it using created from z-a which will show u the most recent flow executed.
From the above step u can come to know which flow got executed,then u can open that flow from flow designer module or from the context itself n check wht has been configured.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 08:53 AM
Hi @Suggy ,
Please refer to below thread:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0854481
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2024 10:25 AM
Hi @Suggy
We can check in flow execution context in Flow designer. It contains details related to the flows that are executed for the table and once we get that we can check based on trigger condition and where the update record is being used.