- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 02:03 AM - edited ‎04-23-2024 02:05 AM
Hi...
Iam having one MRVS variable having one sys_user reference field.
For example, MRVS variable having 3 entries
User 1 |
User 2 |
User 3 |
I need to pass all these 3 users to approvers in RITM.
I have created one flow variable "owner" with "sys_user" table reference.
I have created a flow like below
when iam testing the flow it is inserting only one approver. From the above example: User 3 only inserting. Suppose if i have 5 entries means last 5th entry only inserting as approver.
From the above my MRVS variable, I want to insert all the 3 values of MRVS to approvers.
For this i have written the script like below
But it is not working, not inserting all the values to approvers.
Please help me anyone, how to insert all the values from the MRVS to approvers and where i need to writeh the logic in the flow.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 03:13 AM - edited ‎04-23-2024 03:17 AM
Hi
I can see that the variable is a reference based flow variable. You can change the type to string.
Also to eliminate the scripting, you can follow following steps:
1) Change flow variable type of owner to string
2) Modify the Set Variable step as mentioned in the image "flow variables>owner,2-For Each Item"
Please mark as helpful if the answer is satisfactory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:27 AM - edited ‎04-23-2024 05:42 AM
Hello
I think most of the things are correct, just a small thing
Since MRVS > Owner is referenced to sys_user, lets dot walk till sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 03:13 AM - edited ‎04-23-2024 03:17 AM
Hi
I can see that the variable is a reference based flow variable. You can change the type to string.
Also to eliminate the scripting, you can follow following steps:
1) Change flow variable type of owner to string
2) Modify the Set Variable step as mentioned in the image "flow variables>owner,2-For Each Item"
Please mark as helpful if the answer is satisfactory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:11 AM
Hi Ashutosh,
1) I have changed the flow variable type to string.
2) set variable also changed.
After changing these, iam getting only the first mrvs user(owner) as approver. remaining are not populating in approvers.
Please check the remaining flow and let me know if any changes i need to do
for each item and set flow variable steps:
Lookup Record:
Ask for Approval step:
Please let me know, why remaining user(owners)are not populating in approvers. suggest me the changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:27 AM - edited ‎04-23-2024 05:42 AM
Hello
I think most of the things are correct, just a small thing
Since MRVS > Owner is referenced to sys_user, lets dot walk till sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2024 05:47 AM - edited ‎04-23-2024 12:31 PM
Thankyou Ashutosh