triggers ({ on }) {
/**
* Due to how the Corredor scripting system is designed right now,
* triggers still need to be defined (even if the script is
* executed explicitly from the workflow).
*/
return on(âmanualâ)
.for(âsystemâ)
},
Compose has no context which is ok, cause there is no record context.
So I d like to set namespace, module and use compose or read a record by id but i m not getting this to work using onInterval to trigger the script.
Any working example for this?
How would i use compose to get a record by ID from within the above server script?
On the subject of intervals; automation scripts can also be executed in intervals â I see that the docs are a bit lacking there; see an example for the trigger below:
to be fair - i shortend my example, i already tried it that way. I found the old scripts on github and though i could do it that way but it does not work.
Does the user youâve defined under the runAs have sufficient permissions to access the resources in question? The easiest way to see if thatâs the case is to try it with a super administrator user.
Iâve found and addressed the issue. Should be available in 2021.9.x and 2022.3.x version branches soon and in one of the dev or patch releases a bit later