How to access Record Producer Variable set data in target table in Scoped Application?
Notes:
• Multi Row Variable set Data is not accessible in Scoped Application BR or Script include.
• Use Global BR or Global Script include to access variable set data in scoped application
Lets have one variable set name "item_data" having below variables
1.item
2.item_description
3.Price
Add the variable set "item_data" in record producer which is for any child table of task.
Create BR on record producer target table and use the below script.
var details = "";
var itemID = current.sys_id;
var gr = new GlideRecord(‘TableName’);
if (gr.get(itemID)) {
details = gr.variables.(Variable set name);
var data = JSON.stringify(details);
current.description = details.toString(); }
current.update();
current.setWorkflow(false);
}