Wait for Condition is not triggering in Custom HR workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 12:34 AM
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 ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 01:04 AM
Hi @Sohithanjan G ,
Can u share some snips for 1 of the record how to flow is behaving.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 01:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 02:00 AM
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