Notification Messages

suvarna sonar2
Tera Contributor

We have custom field on group table u_manager_notification with choices None,P1, All, and P1 & P2. When this field update by P1 then record should be created in cmn_notif_message table. How to achieve this one?

1 ACCEPTED SOLUTION

@suvarna sonar2 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

9 REPLIES 9

This is working as expected.

But we have two group notification so i can not give specific notification sysId. Instead of giving specific sysId how can i do that?

@suvarna sonar2 

Glad to know that my script worked.

I believe I have answered your original question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@suvarna sonar2 

so how will you know which one to pick?

If you have some logic around it then pass that notification sysId based on that logic and rest part of the script I already shared.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

if duplicate records are there how to delete those record from cmn_notif_message table?

@suvarna sonar2 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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