Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Email notification Message HTML field

pravalika2
Kilo Expert

Hi,

I have two queries.

1) What am i supposed to fill in the URL field if I am using a Business rule to get the url?

1.png

2) The instance is in Fuji. The earlier email notifications have Message field where we type our HTML code, but now I find only message HTML field. I couldnt find this Message field anywhere in my new notification. Why is this so?

2.png3.png

Kindly help me.

Thanks

4 REPLIES 4

syed_faheem
ServiceNow Employee
ServiceNow Employee

Hi Poojitha,



Can you give more explanation on item 1, what are you trying to achieve ?



for second issue, try click 'Switch to Rich HTML Editor' button on top.



Cheers


Syed.


Hi Syed,



For this, I found the solution . I used a business rule to get a url to use it in email notification. When I am using this script in Message HTML box: <a href=${event.parm2}>Click here</a>, and on saving the form it automatically turns to a link. And when this email is triggered and when the link is opened, it says "page not found". This was happening because: the url which I am receiving from the Business rule is appended to the instance url.


For example: The link from the business rule: https://<instancename>.service-now.com/<etc>


And the link opened via sent email is: https://<instancename>.service-now.com/https://<instancename>.service-now.com/<etc>



Instead I tried using mail script.


<mail_script>  


template.print('<a href=${event.parm2}>Click here</a>');  


</mail_script>  


It did work.



I dint find any button on the form. Could you tell me how to switch back to Rich HTML Editor?



Thank you,


Poojitha


Hi Poojitha,


Button which i am referring is visible in your 1st image under second question. next to delete (second from right )


Oh yes. Thank you very much