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

Dubz
Mega Sage

Rather than writing a script to set the approval to no longer required, why not use the advanced conditions in the approval activity in the workflow to prevent an approval record being sent to those groups in the first place?

lakng
Tera Contributor

i dont want to do any changes on workflow. just want to update the approvals if the approvals trigger to few groups

What happens if it only gets triggered to one of those groups and you go ahead and mark the approval as no longer required? Your change will be stuck.

Generating approval requests to groups you don't want or need approvals from seems like a pretty poor process. You have the ability to tailor approvals so they go to all the right people, i don't know why you wouldn't do that.