- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 06:21 AM
Hi Team,
I have created a muti row variable set called-'workflow'
where i have workflow, approver and cc variables as below:
How to call this variables inside the workflow.
In other words, i need to use approver and cc as approvers inside the workflow.
Please help me.
Thanks,
Srivalli M
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:04 AM
I hope your workflow is running on RITM table if yes the below code will work
Just now tested in my PDI as well.
Keep some logs and try and let me know what logs you have got:
answer = [];
var mrvs = current.variables.workflow; //use MRVS internal name
for (var i = 0; i < mrvs.getRowCount(); i++) {
var row = mrvs.getRow(i); // getting the row one by one using getRow
gs.info("approver"+row.approvers);
gs.info("cc"+row.cc);
answer.push(row.approvers.toString()); //sending approval to approvers users
answer.push(row.cc.toString()); //sending approval to cc users & map your variable names
}
}
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 11:47 PM
Its the same what we have rite now.
Please recheck.
Thanks,
Srivalli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:04 AM
I hope your workflow is running on RITM table if yes the below code will work
Just now tested in my PDI as well.
Keep some logs and try and let me know what logs you have got:
answer = [];
var mrvs = current.variables.workflow; //use MRVS internal name
for (var i = 0; i < mrvs.getRowCount(); i++) {
var row = mrvs.getRow(i); // getting the row one by one using getRow
gs.info("approver"+row.approvers);
gs.info("cc"+row.cc);
answer.push(row.approvers.toString()); //sending approval to approvers users
answer.push(row.cc.toString()); //sending approval to cc users & map your variable names
}
}
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:11 AM
Hi Murthy,
Now it worked.
Thanks a lot mate 🙂
Thanks,
Srivalli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:38 AM
Glad to help:)
Tc
Murthy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:00 AM
Please Refer to this article where i have described how to populate a MRVS.
Mark the comment as a correct answer and also helpful if this helps.