- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 01:32 AM
Hi Everyone,
I have created template for case table. Whenever I use this template and create case , then automatically task should be created in case table (CSTASK0010003). Can anyone help me to guide write client script/ business rule to generate task.
Any reference regarding this .
Thanks in advance
cc : @Ankur Bawiskar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 03:22 AM
in the parent field you should set the case sysId and not number
gr.parent = current.getUniqueValue();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 01:53 AM
Hi,
from where are you triggering case creation using template? there itself you can write the code.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 03:16 AM - edited 10-13-2022 03:18 AM
Hi @Ankur Bawiskar @Sai Kumar B
Yes I am triggering template from case table.
Case template used :
And BR , I am using to create task :
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 03:22 AM
@Abhijit Das7 So, what's happening?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 03:22 AM
in the parent field you should set the case sysId and not number
gr.parent = current.getUniqueValue();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader