Integrating Google Autocomplete API wi

mtaituha
Kilo Explorer

Hi

I am looking to integrate Google autocomplete api with the locations form (name field).

I have run into a issue where the script that I can run on Server Side does not seem to run within a client script

specifically

var ws = new HTTPAdaptor("https://maps.googleapis.com/maps/api/place/autocomplete/json?");

It seems not to like the above command. But if I test it within a scheduled script works perfectly (server).

Has anyone successfully integrated Autocomplete API in ServiceNow.

If so did you run the API server side or client side?

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Myles,



I don't have enough details on this API. But I see you mentioned that it works fine on the Server side. So, in that case, you can try to run it via a business rule or via client script + glide ajax approach in case operation is required from the client side. More info here.


http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


prathyusha_snow
Tera Contributor

Hello myles,



Can you please let me know if you have figured out mapping the field with google locations.