How to copy "assigned to" from old case to new case in transfer of HR case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi,
We have a requirement where, if HR case is transferred from old case to new case, if assignment group is same then assigned to filed should copy from old case to new case, or else assigned to should not copy
so what is the best practice to follow this is that a business rule or any other process
@Ankur Bawiskar @Dr Atul G- LNG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
you can use after insert business rule and when it runs on HR case do this
-> see if this new record is copied from some HR case
-> If yes then check if the assignment group is same as the group of the copied HR case
-> if yes then update the group using current.update() and remember to use current.setWorkflow(false)
š” If my response helped, please mark it as correct āļø and close the thread š ā this helps future readers find the solution faster! š
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @sri vijaya,
Based on your requirement, the best practice would be to implement this logic using a Business Rule.
You could add for example this script:
if (current.assignment_group == previous.assignment_group) {
current.assigned_to = previous.assigned_to;
} else {
current.assigned_to = ''; // or leave unchanged
}
Please keep in mind that you need to test this, as when transferring a case and you keep the same HRC number it still changes the sys_id of the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @sri vijaya
I donāt think the Assigned To field gets copied. There could be several reasons why an old case triggers a new case ā for example, the previous assignee might be on leave, have left the company, or moved to another department. This might explain why, when you copy an incident, only the Assignment Group is copied and not the Assigned To.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************