Group Approval for Flow Designer

Talvin Singh
Tera Expert

Hello Reader,

I have a requirement to set Group Approval on the RITM for a Catalog Item.

So, there is a Single Line Text type variable - 'Approvers'. This field has the name of the Group that should be set as the Approval on the RITM.

For the Catalog Item, we are using a Flow Designer. In the 'Ask for Approval' action I do not any option to select dynamic values (Group name from the variable 'Approvers'). Below is the screenshot -

 

find_real_file.png

1 ACCEPTED SOLUTION

Sourav16
Kilo Guru

Hi,

Instead of making a single line text field make that variable a reference type to (sys_user_group) table i.e. the Group table, then you would be able to use it as a data pill picker for approval in flow designer

View solution in original post

6 REPLIES 6

Sourav16
Kilo Guru

Hi,

Instead of making a single line text field make that variable a reference type to (sys_user_group) table i.e. the Group table, then you would be able to use it as a data pill picker for approval in flow designer

Thanks for the suggestion Sourav. It worked!

Hi Sourav

      I have a same doubt here, the difference is the variable type is list collector, I need to get  a approval from anyone of the user from each group ,how can we achieve this requirement,

 

Thanks in advance

Navinkumar

shloke04
Kilo Patron

Hi,

Please follow the steps below to achieve your requirement:

1) You need to use a Script here to achieve the same. Use the Action Named as "Create Record" and then use the script below:

find_real_file.png

 

var getApproverName = fd_data._1__get_catalog_variables.VARIABLENAME.toString(); // Replace VARIABLENAME with your Variable here
var gr = new GlideRecord('sys_user_group');
gr.addQuery('name',getApproverName);
gr.query();
if(gr.query()){
    return gr.sys_id;
}

 

Also suggestion would be to have a Reference field on your form, reason being as there might be chances that there are duplicate groups and it will be difficult to handle those scenario and with a reference variable you can directly dot walk and generate an Group Approval without any script.

 

Have give both options, please let me know if you have an query here.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke