Is it possible to edit Request variables in servicenow Mobile Agent Catalog task record screen ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2024 06:51 AM
Requirement is to allow the agent to Edit Request variables (ones in the variable editor) that are auto-populated when a catalog task created by workflow in Mobile agent Catalog task Record screen.
I was to able to display the variables in the Catalog task Record screen under Details Screen segment. How can I edit those fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2024 08:13 PM
You can create functions/action items which can help you with this. Your action item needs to be a scripted update.
With the input screen you have already created, add sys_id of the Catalog task.
var gr_sc_task = new GlideRecord('sc_task');
gr_sc_task.get(parm_variable.sys_id);
Your variables are attached to your RITM/Catalog task and then you can save any value to your variables like this,
gr_sc_task.variables.xxxx = parm_variable.xxxx;
gr_sc_task.variables.xxxx.update();
Regards,
SHJ.