Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How can we Restrict Email Address While Exporting files through table

Inds
Tera Contributor

Inds_0-1777352982622.png
Is there any to apply restriction on email address to send emails to users. 

 

let me know from where this message is coming so that we can modify in configuration and apply condition.

Thank you

 

3 REPLIES 3

Naveen20
ServiceNow Employee

If you want to modify the messaging only, you can change the key=export_schedule_text in sys_ui_message table

Inds
Tera Contributor

Hi  

 

Thank you for your reply.

 

Thank you for informing me about the message.

 

We need to apply a restriction on the My Address field so that users cannot select their own email address when sending data via email. currently email address is getting auto populated.

 

Specifically, we would like to apply a filter on the email address field. 

If possible, could we make the field default to blank, or alternatively set it to a default system email address?

 

Thank you

Maham Tahir
Mega Guru

Hi @Inds

According to this post:
https://www.servicenow.com/community/developer-forum/modify-the-quot-please-confirm-quot-alert/td-p/... 
This "Please Confirm" popup is generated by an internal, undocumented ServiceNow class called GwtExportScheduleDialog. It is automatically triggered by the standard List UI Context Menus (e.g., when you right-click a column header and select Export > Excel) anytime the number of records exceeds the limit set in the glide.ui.export.warn.threshold system property

What you can do is you can deactivate the out-of-the-box Export Context Menus and create your own Custom UI Context Menus. You would point your custom menus to a custom UI Page you build from scratch, which would allow you to enforce strict email validation or lock the input strictly to the logged-in user's profile email.

 

If you find my response helpful, mark it as helpful and accepted solution.

 

Regards, 

Maham Tahir.