ProtectedaccountingThe accounting provider this action is designed for (e.g., 'QuickBooks', 'NetSuite', etc.) Can be 'Generic' for provider-agnostic actions
ProtectedapiBusiness Central API version
ProtectedintegrationThe integration name to look up in the Integration entity
ProtectedparamsCurrent action parameters (set by the framework)
Static ReadonlyAuthorizesTrue when the action authorizes its caller itself, so a public entry point such as the
RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller
must hold, or reads and writes only with the caller's own permissions. Leave it false for an
action that acts with more authority than its caller, or that reaches data or sends messages
the caller chooses but could not otherwise reach.
The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.
Description of the action
Define the parameters for this action
ProtectedbuildHelper to build consistent error messages for accounting operations
OptionalsystemError: anyProtectedbuildHelper to build OData filter expressions
ProtectedformatStandard date format for accounting systems (ISO 8601)
ProtectedformatFormats date for Business Central API (ISO 8601)
ProtectedformatFormats currency values consistently
ProtectedgetGets the base URL for API calls from the integration
Optionalprovider: IMetadataProviderProtectedgetGets the appropriate Business Central API URL
ProtectedgetCommon accounting parameters that many actions will need
ProtectedgetGets the company integration record for the specified company and accounting system
ProtectedgetGets credentials from environment variables Format: BIZAPPS_{PROVIDER}{COMPANY_ID}{CREDENTIAL_TYPE} Example: BIZAPPS_QUICKBOOKS_12345_ACCESS_TOKEN
ProtectedgetGets OAuth tokens - first tries environment variables, then falls back to database
ProtectedgetHelper to get a parameter value from the params array
ProtectedInternalProtectedmakeProtectedmapMaps Business Central account category to standard type
ProtectedmapMaps Business Central account types to standard categories
ProtectedparseParses Business Central date format
ProtectedqueryExecutes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
ProtectedvalidateValidates common accounting data formats
ProtectedvalidateValidates journal entry balance (debits must equal credits)
Action to retrieve sales invoices from Microsoft Dynamics 365 Business Central