Something must have happened with the recent update, as we had a tool working that has stopped.
Summary: Two different buttons (call them "button1" and "button2") trigger two separate queries ("query1" and "query2"), and either of those queries trigger a 3rd query ("queryFinal") and it is this third final query's results that are tied to a table for results population.
So, before the update, we might use this flow:
button1 -> (triggers) query1 -> (after this query runs - on success) -> queryFinal
or this flow:
button2 -> (triggers) query2 -> (after this query runs - on success) -> queryFinal
and as you might expect, we have a table (call it "tblResults"), and the Data attribute for tblResults is: {{ queryFinal.data }}
.
There's no magic in queryFinal, it is simply this:
let obj = eval(triggeredById);
return obj.data.data;
This has worked very well for the last few months!
Now, however, when we click button1 we get:
queryFinal: query1 is not defined.
And when we click button2 we get:
queryFinal: query2 is not defined.
I've confirmed that both queries 1 & 2 themselves each individually run and return data, as they always have. I just cannot successfully hand that returned data off to a third query using the triggeredById
key.
Is there some other new syntax change has to be updated in order for triggeredById
to successfully reference the calling query (and its subsequent data)?