What is the Tip of the Week Program?
With thousands of users posting across the global Celonis community daily, incredible workarounds and technical breakthroughs are happening every minute, but they can be easy to miss as you cannot follow all product categories.
To ensure our India User Group stays at the cutting edge of process intelligence, we are launching the Tip of the Week initiative.
This is how it works: I and our team continuously monitors global forums, support trends, and partner channels to source the most relevant, real-world challenges users are facing.
We then curate the verified solutions, workarounds, and expert hacks into a 1-minute, easy-to-read tip tailored just for you.
Question:
Is there a way to dynamically set the variables of Knowledge Model KPIs when using Action Flows?We have a Celonis view with KPIs defined in the Knowledge Model. These KPIs use time-based filters with variables like datefrom and dateto inside the PQL-code.
For example:
"o_celonis_VendorInvoiceItem"."CreationTime" NOT BETWEEN {d '${datefrom}'} AND ADD_DAYS({d '${dateto}'}, 1)
and elsewhere in the same KPI:
"el_custom_SalesOrderItem"."TIMESTAMP" BETWEEN {d '${datefrom}'} AND ADD_DAYS({d '${dateto}'}, 1)
When exporting this view to Excel via Action Flows, the Get Rows module lets me reference the Knowledge Model, but I cannot pass values for these variables.
Using the Data Model instead allows variable injection in PQL, but then I lose access to predefined KPIs and calculated attributes, resulting in very complex, hard-to-maintain code.
Workaround Proposed by
In general, the Get Rows module will always take the default values of a variable, unless refer to the user’s input on views directly. → Hence, you need to trigger the variable from your view.
Solution: Create KPI with variable and set its value from the Apps section
Create a KPI pointing to the variable.
Next, create an input box that the user can leverage to set the variable’s value.
Then, set the variable’ value from the Apps section (not Studio). (Action flows refer to the published app version, hence the Apps section).
Create a button within your view that map your dynamic variable to the action flow’s input.
On the interactions section of the button configuration, toggle ‘update variable’.
The full guidance and documentation of this solution (with screenshots) is here: https://support.celonis.com/s/rightanswer?language=en_US#solutionid=250225171003017&csid=12
Do you have a workaround of your own for this question? Drop it in the comments below!
Have you faced similar problem before? What's your go-to solution for this? Share it in the comments! And hey, if you'd like to contribute a tip for next week's session, I'm here just send me a message.