Creating an HR Task from a Workflow with a Template is Not Setting the Assigned To
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020 01:20 PM
I have an HR service which is configured to run a workflow when a case is created with that HR service selected. In the workflow, a Create Task activity is creating an HR task using a template. On that HR task template are a number of conditions:
Short description: Test Short Description
HR task type: Collect Employee Input
Employee form: Test Form
Assignment type: Employee - Parent case subject person
When the task is created, all of the conditions are properly set except for the Assigned to - it's empty. I never had an issue with setting the Assigned to with this same template before when it was part of a Lifecycle Event.
Does anyone know some troubleshooting steps I can try?
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020 01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020 01:36 PM
I looked back in my emails because I thought we had the same issue. However, we were never able to figure out why it would not save assigned to.
As a workaround we added in the Script - advanced section of the Create Task activity the following:
task.assigned_to = <user id of the person to assign to>;
task.insert();
You are welcome to try if that works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2020 04:29 AM
Hi Nick,
Hope you are doing well.
Is your question resolved? Or do we need to follow-up on this?
Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.
Kind regards,
Willem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 01:48 AM
Hey Nick,
Its an expected result. ServiceNow has provided Below article which help you to understand this.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0860554
Please Mark Answered/Helpful