dynamic field on catalog item through Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I made a topic Titled : (i need monitor ) in VA which Fetches Catalog Item ( Monitor ) Now I want to set the description dynamically same as my prompt.
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@balochfarha Those are fields on RITM table or variables in your catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Variables on catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
@balochfarha I spent some time on this in my PDI and found the solution.
The custom input control returns the object which has the sys_id of RITM , so you can add another script utility after the custom input control with below script.
(function execute() {
var reqInfo = JSON.parse(vaInputs.responsefromcomponent);
var sysID = reqInfo.requestId;
var req = new GlideRecord('sc_req_item');
req.get(sysID);
req.variables.description = "test from VA"; // add your description
req.update();
})()
Note : Once you open the request item, after it is submitted you will see the variable populated.
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@balochfarha Did you get a chance to view the solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@balochfarha did you try this?
Please mark the answer correct/helpful accordingly.