The CreatorCon Call for Content is officially open! Get started here.

Fetch email address from Compose Email page and Validate with User ID field on sys_user table

02rahul02
Tera Contributor

Hi,

 

I have a requirement to validate the email addresses we put on the compose email page from HR cases. Once the agent sends email, I want to fetch the email addresses and validate them with the User ID field on the sys_user table as this field contains the correct addresses. I want to send emails only if the data matches with User ID field, else abort sending. We can allow partial sending of emails for correct addresses.

Thanks,

Rahul

@ankurbawisk 

6 REPLIES 6

@02rahul02 

adding validation using business rule should be much easier as compared to making changes in UI builder.

You need to understand how that Compose Email page works and then handle the validation.

Yes it will have some performance impact but if you narrow down based on the target table in sys_email it won't have that much impact.

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

@02rahul02 

I believe I have shared answer to your question and you can enhance it further based on your requirement and developer skills.

💡 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