Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

ServiceNow OpenFrame API

Kirti Kumar
Kilo Contributor

Hi Team,

Greetings for the day!!!!

I am using latest openframeAPI  to have the functionality of openServiceNowForm to open Incident ,User Page

but it is giving the following error as :-

OpenFrame init failed.. Openframe init request timed out

Script:- <script src="https://<instance>/scripts/openframe/latest/openFrameAPI.min.js" ></script>

Function as 

var config = {
height: 300,
width: 200
}
function handleCommunicationEvent(context) {
console.log("Communication from Topframe", context);
}
function initSuccess(snConfig) {
console.log("openframe configuration", snConfig);
//register for communication event from TopFrame
openFrameAPI.subscribe(openFrameAPI.EVENTS.COMMUNICATION_EVENT,
handleCommunicationEvent);
}
function initFailure(error) {
console.log("OpenFrame init failed..", error);
}
openFrameAPI.init(config, initSuccess, initFailure);

 

But I am getting this error and non of my fuction are working  "OpenFrame init failed.. Openframe init request timed out"

I  am facing this problem/issue from quite a long time.

Please help me on this so that all API works fine.

Regards

Kirti Kumar

5 REPLIES 5

Anav
Tera Contributor

Hi kirti,

 

Did you find any solution of this problem