Hi, I need help with the below error:
We are basically trying to create a javascript based connector, the script works fine in the browser, however when we put the script in Create Account Capability, the test fails with the below error:
com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.EcmaError: ReferenceError: "XMLHttpRequest" is not defined. (#4) in at line number 4
Thanks,
Deepak
XMLHttpRequest is AJAX, so I'm not really sure if our JavaScript connector supports that type of object (never used that connector before).
Googling this error, I see other communities faced the same error on different platforms and fell back to basic JavaScript objects instead. Can you have a look at this and let me know if it helps? https://community.servicenow.com/community?id=community_question&sys_id=aa3807addb1cdbc01dcaf3231f96195e