Dotwalk using script in flow designer

ss123
Tera Contributor

Hi All,

Can anyone assist on this?

I need to dotwalk a user's network id from a MRVS and populate it on the create record in flow designer. 

 

this is my script but seems not working.

var accountID = fd_data._12__for_each.item.user_s_or_group_s_to_be_added_or_modified.u_network_id;
return accountID;
ss123_0-1724063691335.png

 

I need to get/dotwalk the Network ID [u_network_id] of the user from the MRVS.
ss123_0-1724063459115.png

 

  Thanks!!
1 ACCEPTED SOLUTION

Basically you should just need to select which table to look up (the table you're referencing in the MRVS).

Then as condition, select sysID is equal to -> Data picker to get the value of the for-each-value of your specific MRVS variable.

View solution in original post

5 REPLIES 5

Dnyaneshwaree
Mega Sage

Hello @ss123 ,

Try this script if useful:

var mrvsSize = fd_data.mvrs_field; // add the MRVS field name

var accountID = '';
if (mrvsSize && mrvsSize.length > 0) {
for (var i = 0; i < mrvsSize.length; i++) {
var size = mrvsSize[i];
accountID = row.user_s_or_group_s_to_be_added_or_modified.u_network_id;
// If only first network ID needed, then use break here
break;
}
}

return accountID;


OlaN
Tera Sage

Hi,

The issue here is that the values stored in the MRVS are strings (of sysID to the table you're referencing), so you cannot dot-walk directly.

You can work around this by doing a lookup record on the value in the MRVS, and after you've retrieved the record, you can dot-walk further (either in dotwalking the data directly in action selection, or by scripting).

ss123
Tera Contributor

Hi @OlaN thanks for this info.

Can you help how to do it with the look up record? 

ss123_0-1724067602612.png

Thanks.

Basically you should just need to select which table to look up (the table you're referencing in the MRVS).

Then as condition, select sysID is equal to -> Data picker to get the value of the for-each-value of your specific MRVS variable.