trigger approvals through MRVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:49 AM
Hi,
i'm using a MRVS and a variable in that needs to be used for approval (single line text), i'm doing this through a workflow.
the below script is being used: but the approvals are not triggering. when i checked through run script it is giving the exact value. Please help
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 02:08 AM - edited 03-27-2024 02:08 AM
var rows_len = current.variables.application_details.getRowCount();
var approvalValue = '';
// Initialize the variable
for (var i = 0; i < rows_len; i++)
{
var row = current.variables.application_details.getRow(i);
approvalValue = String(row.tech_domain_owner); /
//Set the variable break;
//Assuming you only need one value from the MRVS
}
// Set the workflow variable
workflow.scratchpad.approval_value = approvalValue;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:13 AM
Hi,
it doesn't work and skips the approval

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:17 AM
Did you get value in approvalValue ?
If yet then what type of value you are getting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 03:37 AM
no values have been seen, it just skipped the approval workflow