Email notification when Record producer submitted.

SujitK
Tera Contributor

Scenario is there is a record producer , i want to send a email notification when ever the record producer submitted only when on one particular choice for a question  but problem is the receivers email are based on the user input in RP , and some variable of RP i need to show in notification body and those variable are NOT MAPPED in the table. What can be done.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@SujitK 

no issue

-> you can create after insert BR on the target table of that record producer

-> in that BR script check the value of that variable

-> use gs.eventQueue() to trigger event and include the recipients and include in event parm1

-> in notification ensure Event parm1 contains recipients is marked as True

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hemanth M1
Giga Sage
Giga Sage

Hi @SujitK ,

 

Why don't you use the record producer script to send this email(once successful record creation) , you can easily access record producer variable using Producer api and use gs.eventQueue() as @Ankur Bawiskar  mentioned.

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025