creating approval based on MRVS in flow designer

venkat_guthik
Tera Guru

Iam having MRVS variable with sys_user table reference.

for example: "mrvs_user" mrvs variable having 3 user names

I need to pass these 3 user names data as approvers. how we can setup flow in flow designer. 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@venkat_guthik 

you need to parse the mrvs json and get the approvers and then set it

check this link

approvals based on MRVS field value 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @venkat_guthik ,

 

You can use script to parse and push the sys_id for approval as like below example :

 

 var mrvsData = request.inputData.mrvsVariable; // Assuming 'mrvsVariable' is the MRVS field name
    var users = [];

    // Parse MRVS data to extract user IDs
    for (var i = 0; i < mrvsData.length; i++) {
        var user = mrvsData[i].user; // Assuming 'user' is the field containing the user ID in each row
        users.push(user);
    }

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect