tylerzika
2/1/2017 - 8:51 PM

script.js

var queryString ="SELECT+name+from+Account"
var restUrl = "https://" + window.location.hostname + "/services/data/v38.0/query/?q=" + queryString + " -H "   + "'Authorization: Bearer " + "{!$Api.Session_Id}'";

console.log(restUrl);