How to troubleshoot server side issues when Flows are used?

Suggy
Giga Sage

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 .. 

4 REPLIES 4

Priyanka_786
Tera Guru
Tera Guru

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.

https://www.servicenow.com/community/now-platform-articles/platform-flow-designer-knowledge-amp-trou...

Hope it helps. Kindly mark helpful/accepted if it helps.

Regards,

Priyanka Salunke

Danish Bhairag2
Tera Sage
Tera Sage

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

Sumanth16
Kilo Patron

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

Anil Nemmikanti
Giga Guru

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.