const player = GetPlayer(); const firstnameJS = player.GetVar("v_firstname"); const lastnameJS = player.GetVar("v_lastname"); const emailJS = player.GetVar("v_email"); const employeeidJS = player.GetVar("v_employeeid"); const scoreJS = player.GetVar("v_percentage"); const timeJS = new Date().toLocaleString('en-US'); const url = "https://prod-139.westus.logic.azure.com:443/workflows/2449cf0af59c45d39e0c40f9c9112ccd/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=VPejKyRjr21cP8NijVfcftA8H1VITS4chNT3aDXBeFs"; const xhr = new XMLHttpRequest(); xhr.open("POST", url); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { console.log(xhr.status); console.log(xhr.responseText); }}; const data = JSON.stringify ({ "firstname": firstnameJS, "lastname": lastnameJS, "email": emailJS, "employeeid": employeeidJS, "score": scoreJS, "time": timeJS }) console.log(firstnameJS + lastnameJS + emailJS) console.log(data) xhr.send(data);