How to Create A Hyperlink in Scripted REST API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 01:36 AM
Hi There,
I was trying to send a Link from Scripted REST API to Ok Google app but instead of sending as a link its sending in text
Can someone help me in this,
REgards
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 02:40 AM
Hi Sandeep,
Are you saying that you want to send an URL in scripted rest api response?
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
07-03-2018 11:48 PM
Hi Ankur,
You got it,
Yeah I am trying to send a dynamic URL which should be clickable when we see in Ok Google Console.
For Example :
var message2 = "http://www.google.com/maps/place/"+g_parking.u_lattitude+","+g_parking.u_lognitude;
I want to send above URL but it should show in clickable form and when i click on that it should redirect me there.
Thanks
SAndeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2018 12:41 AM
HI Sandeep,
I don't think you can form an anchor tag in scripted rest response but I am sure if you form the URL it should be in clickable format.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
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
07-04-2018 02:06 AM
Can you please help me with the syntax to form an URL and send it back?