-
Notifications
You must be signed in to change notification settings - Fork 906
Send Email On Form for every Record #2541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send Email On Form for every Record #2541
Conversation
Send Email On Form for every Record
ravichandra1998g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Kart-19
Can you please explain How is this use case different from OOB Email client which allows user to send an email from any record
https://www.servicenow.com/docs/bundle/zurich-platform-administration/page/administer/notification/concept/c_EnableTheEmailClient.html
|
Hi @ravichandra1998g - Yep, you are right, we've the OOB as an email client template. The one difference that I see is the custom fields, which we can add on the UI Page HTML and then populate the value. But in the OOB, the fields are standard and generic. But as you said both will have the same functionality but the user view and the experience are different. |
|
Hello @Kart-19 In the current code snippet, all the fields you have included are already available from the OOB email client. |
|
Yes, I've made a basic template functionality, to just keep it simple as you know, we can add based on the use case by adding the other field on the UI page. Just want to show there is a way to use this functionality rather than OOB which is customizable. |
|
Hello @Kart-19 How the custom fields added here can be sent through Email. As every email would only contain a body? appreciate your effort in submitting this PR but just trying to understand |
|
Sure, the Custom field which will be populated in the UI page for the User view and if they want there is a piece of code which, for example, I've implemented in the UI Page for every email-body, the INC number will be added in front in the same way we can add our custom field. Piece of code - <textarea id="body" name="body" placeholder="Body to send email" >${jvar_num}</textarea> Result - INC000001 and the body content. Appreciate your interest on this. |
ravichandra1998g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me.
PR Description:
To Send Email on Form Directly by population some field and then customize the body and trigger it.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions