Hi all,
In my plugin, I am trying to fetch all the interactions but it seems the API is always returning null.
Here is the code and I am 100% sure there is at least one interaction in the document:-
const interactions = require(‘interactions’);
async function myEntryPluginEntryPoint(selection, root) {
var allInteractions = interactions.allInteractions;
console.log(Interactions: ${allInteractions.length}
);
allInteractions.forEach(interaction =>{
console.log("Trigger: " + interaction.trigger.type + " -> Action: " + interaction.action.type);
})
}
Thanks,