- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 07:24 AM - edited 03-20-2023 07:25 AM
Hi,
I have a requirement to auto populate assignment group of Catalog task with RITM's assignment group whenever a new task is created. And also when the assignment group of RITM is changed then assignment group of all the Catalog task related to that RITM should also be changed and synced.
I wrote a BR on after insert and update on RITM table. It is working only when we have already created tasks and when I change assignment group on RITM it is syncing fine. But when I create a new Ctask it is not auto populating RITM's assignment group. Is there a right way to handle both scenarios. Attached script.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 08:10 AM
yes you can do that by using Onload Client script on SCTASK form
use GlideAjax to fetch the assignment group from server side and then set the value in client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 07:33 AM
Hi @Akanksha Rawoo1 ,
Write another before insert BR on SCTASK table.
In the script glide the RITM record to get the assignment group and set that value to the current record.
Regards,
Teja
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 08:08 AM - edited 03-20-2023 08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 08:10 AM
yes you can do that by using Onload Client script on SCTASK form
use GlideAjax to fetch the assignment group from server side and then set the value in client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 01:18 AM
Thankyou so much!! It is working fine.