- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 02:17 AM
Hi All,
We need to copy the tag in call(u_mservice_calls) to case(u_mservice_case)
i wrote the BR on u_mservice_calls, in logs i got the name of tag in logs.. but it didn't create tag in case.. so can someone help me here
if (current.transferred_to != '') {
var mcase = new GlideRecord('u_mservice_case');
mcase.addQuery('sys_id', current.transferred_to);
mcase.query();
if (mcase.next()) {
mcase.u_applied_tags = current.applied_tags;
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 02:30 AM
Hi Shobha,
What i see here is , you have two different custom tables.
you can use something similar to this code , just replace with your table name:
Please try below script in before insert and update Business rule on label_entry table
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 02:30 AM
Hi Shobha,
What i see here is , you have two different custom tables.
you can use something similar to this code , just replace with your table name:
Please try below script in before insert and update Business rule on label_entry table
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 02:31 AM
Hi I can see only few lines of script. Try below
if (current.transferred_to != '') {
var mcase = new GlideRecord('u_mservice_case');
mcase.addQuery('sys_id', current.transferred_to);
mcase.query();
if (mcase.next()) {
mcase.u_applied_tags = current.applied_tags;
mcase.update();
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 02:34 AM
Use the below code
if (current.transferred_to != '') {
var mcase = new GlideRecord('u_mservice_case');
mcase.addQuery('sys_id', current.transferred_to.sys_id);
mcase.query();
if (mcase.next()) {
mcase.u_applied_tags = current.applied_tags;
mcase.update();
}
}