creating approvals based on MRVS data in flow designer

venkat_guthik
Tera Guru

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

venkat_guthik_0-1713862678025.png

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

venkat_guthik_1-1713862899942.png

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.



2 ACCEPTED SOLUTIONS

Ashutosh C J
Tera Guru

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

AshutoshCJ_0-1713866998361.png


Please mark as helpful if the answer is satisfactory



View solution in original post

Ashutosh C J
Tera Guru

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

AshutoshCJ_0-1713875179309.png

 

View solution in original post

4 REPLIES 4

Ashutosh C J
Tera Guru

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

AshutoshCJ_0-1713866998361.png


Please mark as helpful if the answer is satisfactory



Hi Ashutosh,

1) I have changed the flow variable type to string. 

venkat_guthik_0-1713873534166.png

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:

venkat_guthik_4-1713874143454.png

Lookup Record:

venkat_guthik_2-1713873921987.png

Ask for Approval step:

venkat_guthik_3-1713874019387.png

 

Please let me know, why remaining user(owners)are not populating in approvers. suggest me the changes.

 

 



Ashutosh C J
Tera Guru

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

AshutoshCJ_0-1713875179309.png

 

Thankyou Ashutosh