Integrating Google Autocomplete API wi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 06:12 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 06:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2018 09:21 AM
Hello myles,
Can you please let me know if you have figured out mapping the field with google locations.