- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2016 05:51 AM
We have defined a workflow on the sc_req_item table. I want to populate the short description on the parent request from this workflow.
I see the option to do this.... I can select the "parent.short_description" field and can give this a specific content, but it does not work as desired.
I was looking for what exactly happens chonologically. First the workflow "Service Catalog Request" is executed. In this flow the short description on the request is populated with value "X". When this workflow finishes the next workflow (on requested item level) is executed. My assumption was that a "set values" step in this flow on the short description field of the RITM's parent (being the REQ) would overrule the previously populated value. This is not the case.
Purpose of a specific short description is that I would like to make an acception on the notification that is sent from this type of request.
Anyone any ideas how to do this ?
Regards,
Jeroen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 06:11 AM
Hi Try below code
var gr = new GlideRecord('sc_request');
gr.addQuery('sys_id',current.request);
gr.query();
gr.next();
gr.short_description = 'Requests_new_short_description';
gr.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 06:11 AM
Hi Try below code
var gr = new GlideRecord('sc_request');
gr.addQuery('sys_id',current.request);
gr.query();
gr.next();
gr.short_description = 'Requests_new_short_description';
gr.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 06:41 AM
Dear Ravi,
Thanks for your contribution. This indeed does the job right.
Regards,
Jeroen