Populating the RITM Category with Catalog task category.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 09:03 PM
Populating the RITM Category with Catalog task category.
I am looking to see if there is a possibility to populate the Category on the RITM with the Category on the Catalog task.
These are 2 independent fields and we did not have the requirements initially to have category on the RITM level and now the Category on RITM is important requirement.
Any help is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2020 11:09 AM
you need to select the update check box as well.
Also please add the filer condition if you need to run this on update as well.
Just use Field: Category - Operator: changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2020 02:41 AM
Hey Hi Kirthi,
Check this code inside after business rule. I think this will fulfill your requirement.
Code Snippet:-
var category = current.u_category.title;
var refKey = current.request_item;
var grItem = new GlideRecord('sc_req_item');
grItem.addQuery('sys_id', refKey);
grItem.query();
grCat.addQuery('sys_id', current.u_category.sys_id);
grCat.query();
if(grItem.next())
{
grItem.u_category = current.u_category.sys_id;
grItem.update();
}
Please marked my answer as correct or helpful.
Thanks,
Vanashree Kubal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2020 07:43 AM
Hey Hi Kirthi,
Let me know you have any query related to answer or you are satisfied with it.
Please marked my answer as correct or helpful.
Thanks,
Vanashree Kubal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2020 10:11 AM
You should be careful posting screenshots with real data from your organization.
With regards to your requirement, this is just data duplication and not a good practice.