The CreatorCon Call for Content is officially open! Get started here.

how can i fetch groups in to an array

lakng
Tera Contributor

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"

 

1 ACCEPTED SOLUTION

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 the comment as a correct answer and helpful if it helps.

View solution in original post

48 REPLIES 48

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

 

lakng
Tera Contributor

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.

sorry, it should be current.parent. and then check.

lakng
Tera Contributor

yes we got the sys_id of the change request

great. So did you check the column name of risk and what is the data type of that?