Compose Client Email Template functionality

Pooja Limbani
Giga Guru

Hi All,

I am trying to configure the 'Email Client Template', in which, under 'Sender Configuration' tab, by setting From Generation Type, as script & Here in Email, I am trying to set the 'From' field , a value of a current record field(u_email_id). Is there any way to do that instead of getting value from Table 'Email Client From Address' (sys_email_client_from_address_list.do).

PoojaLimbani_0-1748609862222.png

 

Here, in the below image, it calls below function, 
(function (fromAddressQuery, targetRecord) {
})(fromAddressQuery, targetRecord);

PoojaLimbani_1-1748610047276.png

Please assist to achieve this without calling Email Client From Address

 

 

If this response resolved your issue, kindly mark it as Helpful or Accept Solution—it helps others find the answer faster.
1 ACCEPTED SOLUTION

Hi @Ankur Bawiskar 

Thank you so much for your support
I actually found a way to populate it by using below:


From Generation Type : Text

PoojaLimbani_0-1748622101876.png

 

 

 

This worked in my scenario.


If this response resolved your issue, kindly mark it as Helpful or Accept Solution—it helps others find the answer faster.

View solution in original post

8 REPLIES 8

Hi Ankur, 
Many thanks for your efforts.

I tried this method, but it is picking any random email address from 'Email Client From Address' table and setting it in From field


If this response resolved your issue, kindly mark it as Helpful or Accept Solution—it helps others find the answer faster.

@Pooja Limbani 

did you add gs.info() and see what value it prints?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thank you so much for your support
I actually found a way to populate it by using below:


From Generation Type : Text

PoojaLimbani_0-1748622101876.png

 

 

 

This worked in my scenario.


If this response resolved your issue, kindly mark it as Helpful or Accept Solution—it helps others find the answer faster.

@Pooja Limbani 

Please mark your own response as correct and close the thread.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader