How to Create A Hyperlink in Scripted REST API

Sandeep Kumar6
Giga Guru

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

14 REPLIES 14

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sandeep,

Are you saying that you want to send an URL in scripted rest api response?

Regards

Ankur

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

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

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

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

Can you please help me with the syntax to form an URL and send it back?