functions
Custom logic — csx scripts (standalone).
Not in this build: see What works today.
functions
Section titled “functions”Custom logic — csx scripts (standalone). Key = function name. Trust: admin-level code.
- Type:
map of object - Required: no
- Names match
^[a-z][a-z0-9-]{0,62}$.
functions.<name>.script
Section titled “functions.<name>.script”Relative path to a .csx file inside the descriptor bundle.
- Type:
string - Required: yes
- Pattern:
\.csx$
functions.<name>.trigger
Section titled “functions.<name>.trigger”Optional trigger; a function without a trigger is only invocable from the function automation action.
- Type:
object - Required: no
functions.<name>.trigger.http
Section titled “functions.<name>.trigger.http”Expose the function at an HTTP route (also serves as an inbound receiver).
- Type:
object - Required: yes (in its variant)
- Exactly one of
http,schedule,event.
functions.<name>.trigger.http.route
Section titled “functions.<name>.trigger.http.route”Route path, starting with ’/’.
- Type:
string - Required: yes
- Pattern:
^/
functions.<name>.trigger.http.method
Section titled “functions.<name>.trigger.http.method”HTTP method (defaults to POST when omitted).
- Type:
string - Required: no
- Values:
"GET","POST","PUT","PATCH","DELETE"
functions.<name>.trigger.schedule
Section titled “functions.<name>.trigger.schedule”Cron expression (5 fields, UTC).
- Type:
string - Required: yes (in its variant)
- Pattern:
^\S+ \S+ \S+ \S+ \S+$ - Exactly one of
http,schedule,event.
functions.<name>.trigger.event
Section titled “functions.<name>.trigger.event”Event pattern, e.g. entity.deals.updated, entity.*.created, entity.orders.* or the coalesced batch shape entity.orders.created.batch.
- Type:
string - Required: yes (in its variant)
- Pattern:
^(entity|auth|storage)\.([a-z][a-z0-9_]*|\*)\.([a-z]+|\*)(\.batch)?$ - Exactly one of
http,schedule,event.
functions.<name>.execution
Section titled “functions.<name>.execution”Sync = in the request path (short timeout); queued = via outbox and worker (default).
- Type:
string - Required: no
- Values:
"sync","queued" - Default:
"queued"