Skip to content
Proud to collaborate with Microsoft for Startups

sap.list-gl-accounts ​

List SAP G/L accounts in a chart of accounts, for classifying journal lines

List chart-of-accounts entries through the org's SAP connection.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-sap
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped SAP CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
skipintegerNo0Zero-based OData $skip
topintegerNo100OData $top page size (1..1000)
chart_of_accountsstringNo—Narrow to one chart of accounts (e.g. YCOA)
gl_accountstringNo—Resolve exactly one G/L account number

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped SAP CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
skipintegerNo0Zero-based OData $skip
topintegerNo100OData $top page size (1..1000)
chart_of_accountsstringNo—Narrow to one chart of accounts (e.g. YCOA)
gl_accountstringNo—Resolve exactly one G/L account number
gl_accountslistYes—Normalized chart-of-accounts records for this page
record_countintegerYes——
sap_environmentstringNo—Which SAP data set the records came from: 'sandbox' (Business Accelerator Hub canned data) or 'live'. Sourced from the connection, never from caller input. Persisted evidence must be partitioned by this value.
listed_atstringYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
provider_request_refstringNo——
retryablebooleanNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
doneYesYesYes——

Outcomes ​

OutcomeTypeDescriptionState Data Keys
listedSUCCESSG/L accounts were listedgl_accounts, record_count, sap_environment
failedFAILUREThe listing failedfailure_reason, failure_type, retryable

Business Errors ​

CodeMessage Template
SAP_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
SAP_CONNECTION_NOT_FOUNDSAP connection {connection_uuid} was not found in the authenticated organization
SAP_CONNECTION_WRONG_PROVIDERConnection {connection_uuid} is not a SAP connection
SAP_CONNECTION_SERVICE_UNAVAILABLEThe shared cloud connection service is unavailable
SAP_PROVIDER_CAPABILITY_MISSINGThe installed SAP provider does not expose the required API operation
SAP_AUTHENTICATION_FAILEDSAP rejected the connection credentials or API key
SAP_PROVIDER_REQUEST_FAILEDThe SAP OData request failed
SAP_RESPONSE_SHAPE_INVALIDThe SAP OData API returned an invalid response
SAP_PAGINATION_INVALIDskip must be a non-negative integer and top must be between 1 and 1000
SAP_WINDOW_INVALIDDates must use YYYY-MM-DD and be ordered
SAP_SIDE_INVALIDside must be exactly 'receivable' or 'payable'
SAP_ENVIRONMENT_INVALIDThe connection's SAP environment must be exactly 'sandbox' or 'live'

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "sap.list-gl-accounts",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}