- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 03:56 AM - edited 06-11-2024 04:05 AM
Hello Experts,
I am trying to make text bold it is working but what I am looking for is I want only service to be bold but instead it is giving me whole print as bold. Any suggestions how do i rectify it
In email script using this
template.print("Here is the Service"+<strong>+"\""+item.service+"\""+</strong>);
Result : I am getting the whole sentense as bold starting from "Here is the Service............"
Just want to make item.service result as BOLD.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:52 AM
Hi @Nisha30 ,
I have tried the below in PDI and it is working as expected:
Notification Email Script:
Name: testNotifScript
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print("Here is the Service" + "\""+'<b>' + current.caller_id.getDisplayValue() + '</b>');
})(current, template, email, email_action, event);
Email Notification:
------------------------
Notification Output:
-----------------------------
Could you please share the whole notification script and the output please?
Please Mark My Response as Correct/Helpful based on Impact
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:52 AM
Hi @Nisha30 ,
I have tried the below in PDI and it is working as expected:
Notification Email Script:
Name: testNotifScript
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print("Here is the Service" + "\""+'<b>' + current.caller_id.getDisplayValue() + '</b>');
})(current, template, email, email_action, event);
Email Notification:
------------------------
Notification Output:
-----------------------------
Could you please share the whole notification script and the output please?
Please Mark My Response as Correct/Helpful based on Impact
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 03:16 AM
Thankyou all for instant assistance.
What I did was created a completely new notification and email script with above code. It is working now not sure for the existing one what was wrong