Wondering if anyone can help me. I’m trying to find a way (with the action button script) to extract useful info from the objects returned when executing commands within an action button.
So for example, I use the following
const fibery = context.getService(‘fibery’);
const e = await fibery.executeSingleCommand({
“command”: “fibery.entity/query”,
“args”: {
“query”: {
“q/from”: “App/Type”,
“q/select”: [
“fibery/id”,
],
“q/limit”: 1
}
}
});
and I would like to be able to get the id as a string.
I thought that maybe I could just use something like
console.log(e.fibery/id)
but no luck.
So I’m wondering if any software gurus out there have any suggestions. In fact, a general guide for how to parse any object that is returned when a command is executed.
I have no formal software training, and have not worked with JS before, so please forgive my ignorance.