Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
My requirement is to extract all variables info along with its definitions. Can anyone pls suggest a way to achieve this via API's?
Please suggest
You can use the Engine API to create a session object that is retuning all variables. Something like this:
const variableList = {
qInfo: {
qType: "VariableList",
},
qVariableListDef: {
qType: "variable",
},
};
// create session object
const sessionObj = await doc.createSessionObject(variableList);
// get the layout of the session object
const layout = await sessionObj.getLayout();
// layout.qVariableList.qItems -> all variables definitions
// you can dispose of the session object if you want
// await doc.destroySessionObject(sessionObj.id);
Stefan
Hi,
You can use the Variable API.
Bill