We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

notification

sriramsin
Tera Contributor

Hi Guys 
I have created a record producer for my custom table, for that i have created a notification with a button like accept , if the any user of the assignment group clicks accept , it change assigned to field with the logged in user. 
For that i have tried with email script + UI action , But I don't know why it won't work . 

Help me learn about it .

Thanks in advance 
Sri .

 

8 REPLIES 8

sanketpatil09
Tera Guru

This is not working because a button in an email cannot run a UI Action, as UI Actions only work inside the ServiceNow application and not from emails, and email scripts run only when the email is sent, not when the button is clicked. The correct way is to make the Accept button open a link that calls a Scripted Processor, which then checks the logged-in user and updates the record by setting the Assigned to field to that user and redirects them back to the record.

Ankur Bawiskar
Tera Patron

@sriramsin 

2 Ways to handle this

1) ask user to reply to that email and create inbound action to update the Assigned to field

OR

2) ask user to go to that record by providing link in email, create UI action on that table and check if logged in user is member of assignment group then only show that button and ask user to click that button. on click set assigned to with logged in user

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@sriramsin 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

I have created ui action , but it is not triggering.