Multirow variable set values in short description of catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2024 12:50 AM - edited 12-02-2024 12:51 AM
Hello,
Can anyone please help me on the below requirement.
I have a multirow variable set name ' Required Roles'. In this variable set i have one variable with name ' Roles available'. I need to display this 'Roles available' values to short description of the catalog item.
I have written one After business rule. But not getting the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2024 03:21 AM
What table is your Business Rule running on? Since it is after (insert?) you need a current.update() line after making any changes to the current record. With each MRVS row read, the script variable is getting wiped out so only the value from the last row will be included the way you have it now. Since this is multiple values with text added, it may work better to use the description field, but whichever you use you need to change this to:
shdesc += 'Request to'+ row.roles_availble;
to append the value with each MRVS row. The Item script variable is not used, so you can get rid of that line, depending on what table this is running on and what you're really trying to do (update the REQ? RITM? SCTASK?...)