- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 02:12 AM
i want to fetch few groups in an array,
after that if the change request is having approval for this groups the Approval automatically has to set No longer Required.
so here how can i write an business rule, which will check the approval group, if the approval group is one of these fetched ones, then the approval has to set "No longer Required"
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2020 01:48 AM
Hi,
so can you add a log above if and print current.assignment_group and groups array and check what the value it contains.
Technically,both should be group sys_ids and if you think the assignment group present in your list of groups, then manually verify the sys_id of assignment group in the groups array or in your table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 03:46 AM
can you add this and check if the ssy_id that you are getting is sys_id of CR.
gs.log("Change request is "+current.sys_id);
Also, check the column name of risk. is it risk or u_risk?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 03:52 AM
no asif, it is not taking the change request ssy_id.
it is giving the sys_id of group approval record.
and rick is corrrect not u_risk.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 03:53 AM
sorry, it should be current.parent. and then check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 03:58 AM
yes we got the sys_id of the change request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2020 03:58 AM
great. So did you check the column name of risk and what is the data type of that?
Mark the comment as a correct answer and helpful if it helps.