How do I get the display value of a MRVS reference variable

Meloper
Kilo Sage

How do I get the display value of a MRVS reference variable

1 ACCEPTED SOLUTION

Soeren Maucher
Mega Sage

Hello @Meloper ,

since you asked me via chat for a solution “without scripting a glide record”. The low code Flow Designer solution would be to use a “look up record” instead. Technically, this will also use a glide record in the back, but you can do it with simple flow designer steps and don’t have to script anything.

Unfortunately, in the multirow variable set ServiceNow only stores the sys id of the referenced record and not the record itself. Therefore, if you directly drag and drop it (in my case I chose a referenced incident) it will only provide you the sys id.

SoerenMaucher_0-1676017732390.png

 

Logging message in this case: 57af7aec73d423002728660c4cf6a71c

 

 

To access the referenced incident record you will have to use a “Lookup record” step where you search in the incident table for the sys id from the multirow variable set as shown in the below screenshot.

SoerenMaucher_1-1676017732395.png

 

Then in the following step, you can access the entire incident record with all its field. For example you can now access and log the incident number which is the default display value of an incident record. However you can access any other fields as well.

SoerenMaucher_2-1676017732403.png

 

Logging message in this case: INC0009009

I hope this helped. If yes, I would appreciate if you could mark this answer as "correct solution". Thank you!

Greetings,

Sören

View solution in original post

1 REPLY 1

Soeren Maucher
Mega Sage

Hello @Meloper ,

since you asked me via chat for a solution “without scripting a glide record”. The low code Flow Designer solution would be to use a “look up record” instead. Technically, this will also use a glide record in the back, but you can do it with simple flow designer steps and don’t have to script anything.

Unfortunately, in the multirow variable set ServiceNow only stores the sys id of the referenced record and not the record itself. Therefore, if you directly drag and drop it (in my case I chose a referenced incident) it will only provide you the sys id.

SoerenMaucher_0-1676017732390.png

 

Logging message in this case: 57af7aec73d423002728660c4cf6a71c

 

 

To access the referenced incident record you will have to use a “Lookup record” step where you search in the incident table for the sys id from the multirow variable set as shown in the below screenshot.

SoerenMaucher_1-1676017732395.png

 

Then in the following step, you can access the entire incident record with all its field. For example you can now access and log the incident number which is the default display value of an incident record. However you can access any other fields as well.

SoerenMaucher_2-1676017732403.png

 

Logging message in this case: INC0009009

I hope this helped. If yes, I would appreciate if you could mark this answer as "correct solution". Thank you!

Greetings,

Sören