How should i add space in the mailscript

Naresh291
Tera Contributor

Hi ,

how to add the space in the following script line in the notification mail script :

template.print(' The request to add/remove access for '+current.variables.requested_for.first_name+' has been processed.');

In the above script , i want to add the space in the beginning of the sentence i.e. before "The".

Any leads is highly appreciated.

20 REPLIES 20

Hi,

Did you try approach from Aman? that should work fine and widely used

In your line also there is space

template.print(' The

did you try to give more spaces and check once

template.print('     The

Regards
Ankur

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

I tried but no luck

 

@Naresh29 

Hmm neither template.space() works not template.print('  ' + 'The')

I tried both

Regards
Ankur

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

Any other idea of how to achieve this

Hi,

for time being you can use this in the HTML without using email script

 The request to add/remove access for ${variables.requested_for.first_name} has been processed;

 The request to add/remove access for ${variables.requested_for.first_name} has been processed;

find_real_file.png

Regards
Ankur

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