Skip to content
Become a partner
Documentation · External

Call

Calls a function published by the application's ODESA server and ticked in its definition (Functions tab). Parameters follow as name, value pairs, or as one record (form, for example). Returns {ok, data} or {ok: false, error: {code, message}}. An action (not a read) needs a Confirm answered yes earlier in the run, unless it is ticked “no confirmation”. Online only; the effect is immediate (a later Cancel does not undo it); 20 calls per run.

May wait for the network

Syntax

Call(function, [value…])

Parameters

ParameterTypeDetails
functiontextrequired
valueany valueoptional, repeatable

Returns

record

Example

If(Confirm("Accepter cette facture ?"), Call("facture-electronique-incoming-confirm", "invoice_ref", $numero))

In the same family