Microsoft Dynamics NAV · Arazzo Workflow

Business Central Create a Journal and Read Its Lines

Version 1.0.0

Create a general journal in a company and read back its line collection.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Business ManagementDynamics NAVERPFinanceInventoryMicrosoftNavisionArazzoWorkflows

Provider

navision

Workflows

create-journal-and-read-lines
Create a journal in a Business Central company and read its lines.
Confirms the company, creates a journal with the supplied code and display name, and lists the journal's lines using the generated journal id.
3 steps inputs: code, companyId, displayName, templateDisplayName outputs: journalCode, journalId, lines
1
confirmCompany
Confirm the supplied company id exists in the tenant before creating a journal in it.
2
createJournal
Create a new journal batch in the resolved company using the supplied code and display name.
3
readJournalLines
Read the line collection of the newly created journal so entries can be posted into it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Business Central Create a Journal and Read Its Lines
  summary: Create a general journal in a company and read back its line collection.
  description: >-
    A general-ledger setup flow for Business Central. The workflow confirms the
    target company, creates a new journal batch, and then reads back the
    journal's line collection so the caller can begin posting entries into it.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-200.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-200.10
      capability_name: General Ledger Management
      spec: navision-journals-api-openapi.yml
      confidence: 0.9
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: companiesApi
  url: ../openapi/navision-companies-api-openapi.yml
  type: openapi
- name: journalsApi
  url: ../openapi/navision-journals-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-journal-and-read-lines
  summary: Create a journal in a Business Central company and read its lines.
  description: >-
    Confirms the company, creates a journal with the supplied code and display
    name, and lists the journal's lines using the generated journal id.
  inputs:
    type: object
    required:
    - companyId
    - code
    - displayName
    properties:
      companyId:
        type: string
        description: The UUID of the Business Central company.
      code:
        type: string
        description: The journal code to assign.
      displayName:
        type: string
        description: The journal display name.
      templateDisplayName:
        type: string
        description: The journal template display name.
  steps:
  - stepId: confirmCompany
    description: >-
      Confirm the supplied company id exists in the tenant before creating a
      journal in it.
    operationId: listCompanies
    parameters:
    - name: $filter
      in: query
      value: "id eq $inputs.companyId"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      companyName: $response.body#/value/0/name
  - stepId: createJournal
    description: >-
      Create a new journal batch in the resolved company using the supplied code
      and display name.
    operationId: createJournal
    parameters:
    - name: company_id
      in: path
      value: $inputs.companyId
    requestBody:
      contentType: application/json
      payload:
        code: $inputs.code
        displayName: $inputs.displayName
        templateDisplayName: $inputs.templateDisplayName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      journalId: $response.body#/id
      journalCode: $response.body#/code
  - stepId: readJournalLines
    description: >-
      Read the line collection of the newly created journal so entries can be
      posted into it.
    operationId: listJournalLines
    parameters:
    - name: company_id
      in: path
      value: $inputs.companyId
    - name: journal_id
      in: path
      value: $steps.createJournal.outputs.journalId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      lines: $response.body#/value
  outputs:
    journalId: $steps.createJournal.outputs.journalId
    journalCode: $steps.createJournal.outputs.journalCode
    lines: $steps.readJournalLines.outputs.lines

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/navision-create-journal-and-read-lines-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.