invoke_action
Invoke a named action on an Acumatica entity record to trigger business processes like cancelling orders or releasing bills. Returns 204 for fire-and-forget or 202 for long-running actions.
Instructions
Invoke a named action on an entity (POST /{Entity}/{Action}). Requires ACUMATICA_ALLOW_WRITES=1.
Examples: invoke_action("SalesOrder", "CancelSalesOrder", entity_record={"OrderType": {"value": "SO"}, "OrderNbr": {"value": "SO012345"}}) invoke_action("Bill", "ReleaseBill", entity_record={"ReferenceNbr": {"value": "001234"}})
Args: entity: Entity name. action: Action name (call describe_entity(entity) to see available actions). entity_record: The record the action runs against, in Acumatica's wrapped format. parameters: Action-specific parameters, if any.
Returns 204 No Content for fire-and-forget actions; 202 for long-running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| entity | Yes | ||
| parameters | No | ||
| entity_record | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||