Cannot access Multi row variable set values into BR from service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 03:16 AM
Hello,
I'm trying to access the MRVS values in BR, this MRVS is on a record producer, when i'm using current.variables.variableset from backend it is accessing the values, but when i'm trying to create a record from service portal at that time this BR for current.variables.variableset is giving me undefined. Any help on this will be greatly helpful
Line number 4 i mean to ask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 05:39 AM
Where exactly are you running that code and what is the trigger?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 07:14 AM
Hello Bharath,
Value of Variables will be a string . Whereas, value of a variable set(MRVS) will be in an Array
So, considering select_non_serialized_assets to be your MRVS name you will have to navigate through the value like this...
var slctdNonserialized = current.variables.select_non_serialized_assets[0]; //line 4
//You will get the JSON here or you can further dot-walk to the variables of MRVS
Please hit the thumbs up if this helps.😀
Regards,
Bhavani Shankar