Populate Catalog Task assignment group with RITM assignment group while creating a new task.

Akanksha Rawoo1
Tera Contributor

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.

1 ACCEPTED SOLUTION

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.

View solution in original post

4 REPLIES 4

Teja11
Giga Guru

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.

Thanks for the reply. 

Yes it is working when we submit the Ctask form. Since assignment group field is mandatory can we populate the value before submitting the record.

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.

Thankyou so much!! It is working fine.