ebms_command
Run an allowed bound command on one EBMS record—provide company, entity, record ID, and dialog fields if the command requires them.
Instructions
Run a bound action on one record: POST /ENTITY('')/Model.Entities.. Omit body for a command with no dialog (MarkAllAsShipped, RecalculateAllPrices) — EBMS rejects even {}. Pass the dialog's fields for one that has a dialog (ChangeCustomer). Refused for a company that is not configured (or not the sandbox, while testing), and for any action that is not on the server's short allow-list — nothing that posts, processes, pays or sends. Commands return little; read the record back afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Required. AUTOID of the record. | |
| body | No | Dialog fields, only for commands that have a dialog. | |
| entity | Yes | Required. The entity, e.g. ARINV | |
| command | Yes | Required. The action name, e.g. MarkAllAsShipped, RecalculateAllPrices, ChangeCustomer | |
| company | Yes | Company, by ID or name as ebms_companies lists them. Required on every write. |