Need help in email client templates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 06:31 AM
Hi team,
I have created an email client template and calling a script include inside it to update "from" address in it. but it is not working as expected also not creating any logs from script include. please suggest.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 08:48 AM
Hi @Deepthi13,
I think it would be a good idea to change the From Generation Type value to Script and then check if your script works.
To give you an idea of how a sample script for this field could look like, let me share this link with you.
Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:23 AM
tried script in generation type, but it is also not wokring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:27 AM
also, i tried directly hardcoding giving like "select from list" by creating record in "sys_email_client_from_address" table and selected it still it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 08:58 AM
Hi Deepthi,
It seems you are calling the script include from client side, Please make the necessary changes as below-
Client callable should be checked true.
You need to modify the script like below-
var Emailutils_V3 = Class.create();
Emailutils_V3.prototype = Object.extendsObject(AbstractAjaxProcessor, {
setFromReplyToAria: function() {
//Your code here
},
type: 'Emailutils_V3'
});
Adjust as above and ensure to include this- Emailutils_V3.prototype = Object.extendsObject(AbstractAjaxProcessor
If my response has resolved your query, please consider giving it a thumbs up and marking it as the correct answer!
Thanks & Regards,
Sanjay Kumar