Create Task action in workflow not working correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 11:00 AM
we've a project table Pod Projects [u_pod_projects]. Now, we've a requirement "when new project is created, it should create tasks based on Project Stage field."
project stage -proposal : 2 tasks
project stage -run/depolyment : 3 tasks
project stage -release : 1 task
I've created workflow on u_pod_projects table. I've created added 'switch' for project stage field. Now, as soon as I create project using rest api explorer, it's creating 25 tasks automatically. 1st one is mapping correctly and showing under related list. For all others, project field in project task form isn't updating. Ideally, only 1 should have been created for stage proposal; however, it's creating 24 proposal tasks.
Please help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 11:04 AM
Depends on what you have in your workflow.
I would also suggest using flow designer as ServiceNow doesn't provide support for workflow anymore.
Please mark this response as correct or helpful if it assisted you with your question.