UI Action to add SC TASK

Sajal Chatterje
Tera Contributor

I'm trying to create a custom button to add sc task manually .But its not working.Please find the screenshot 

SajalChatterje_0-1710210991176.png

On clicking the button, a pop up is coming showing "no records selected" and on selecting the existing task record, and then clicking "create new task " button it is duplicating everything with that of previous task.

 

SajalChatterje_1-1710211158757.png

 

Below is the UI Action script i created on sc_task table.Please help me to correct the script so that I can seamlesly add task without any pop ups and records should not be duplicated.Atleast the SCTask number should'nt be duplicated.

 

SajalChatterje_3-1710211405852.png

 

 

SajalChatterje_2-1710211368960.png

Thanks,

Sajal

1 ACCEPTED SOLUTION

shikhatyagi
Kilo Sage

Hi @Sajal Chatterje 

 

Create UI action on RITM instead of on sc_task table and map the current record sys_id on request item field on task table. It will create manual task and automatically attached to your RITM.

 

shikhatyagi_0-1710223636734.png

 

shikhatyagi_1-1710223714490.png

 

Please mark my answer as Accepted as Solution & hit helpful button if it helped you.

 

Thanks,

Shikha

View solution in original post

3 REPLIES 3

Dhananjay Pawar
Kilo Sage

Hi Sajal,

Are you sure that your custom UI action is creating duplicate task?

In your script I do not see RITM number mapping to Task field so may be some other script is there to create the task with RITM number could you please check that.

And I tried replicating same in my PDI and it is creating the task with different task number.

 

Thanks.

shikhatyagi
Kilo Sage

Hi @Sajal Chatterje 

 

Create UI action on RITM instead of on sc_task table and map the current record sys_id on request item field on task table. It will create manual task and automatically attached to your RITM.

 

shikhatyagi_0-1710223636734.png

 

shikhatyagi_1-1710223714490.png

 

Please mark my answer as Accepted as Solution & hit helpful button if it helped you.

 

Thanks,

Shikha

shikhatyagi
Kilo Sage

Hi @Sajal Chatterje 

 

Please Mark this Helpful and Accepted Solution in order to close this thread.

 

Thanks & Regards,

Shikha Tyagi