How should i add space in the mailscript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:16 AM
Hi Naresh
try
template.print('<p> The request to add/remove access for '+current.variables.requested_for.first_name+' has been processed.</p>');
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:21 AM
is the space not coming since you already gave some space before The
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:28 AM
If it is not working fine then you can try approach mentioned by Aman
or you can also try to use OOB template.space()
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 04:30 AM
Its not working ,
Can you elaborate how exactlty do i need to add in the template.space()