Wait for Condition is not triggering in Custom HR workflows

Sohithanjan G
Kilo Sage
Kilo Sage

Hi, 

We have a table called sn_hr_core_case as the base table. Under this main table we have different COEs (which are like same tables but different classes sys_class_name).

And we have a custom flow on the sn_hr_core_case to set some fields accordingly which runs as expected to all COEs class tables

But the Wait for Condition is not triggering for COE class tables, but its only triggering for main table. 

Am I missing anything ? I have tried with workflow resume from BR & forceupdate on base table using background script as well.

Any Suggestions ??

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)
3 REPLIES 3

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Sohithanjan G ,

 

Can u share some snips for 1 of the record how to flow is behaving.

 

Thanks,

Danish

Sohith1_0-1696752361906.png

 

This is the script modified since its not trigggering from condition builder. But this also not working


It works only on core case table not on different class tables

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Sohithanjan G ,

 

Instead of hardcoding the table name directly in the above script can you try something like

 

current.getTableName() in ur glide query

 

It should be something like 

 

var grCase = new GlideRecord(current.table_name)

 

Issue is happening because when the flow runs for other tables it tries to find the current.sys_id in the HR core case table where it is unable to find any n returning as false.

 

Mark my answer helpful & correct if it helps you resolve your issue

 

Thanks,

Danish