creating approval based on MRVS in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 04:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 04:13 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 04:15 AM
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....