Klevr Product Documentation logo

Documentation Guide

How to use integration display names, stage names, descriptions, Markdown files and integration overviews to generate documentation in the Integration Hub Portal.

The Klevr Integration Hub Portal service includes the automatic generation of integration documentation, based on the stage definition files, ensuring that critical documentation about your deployed integrations is never out of date.

This is done via the mechanisms below, from the integration level down to each stage.

Integration Display Name

By default, the Klevr Integration Hub Portal shows each integration by the name of its directory, for example warehouse-order. To show a friendlier name, for example "Delivery Order Import", add an integration settings file to the integration directory, with the same name as the directory and a .json file extension:

interfaces
{businessUnitCode}
{domainCode}
{integrationName}
{integrationName}.json
{integrationName}.md
{
  "displayName": "Delivery Order Import"
}
PropertyDescription
displayNameRequired. The name to show for the integration in the Klevr Integration Hub Portal. It must contain at least one character that is not a space. Spaces at the start and end are removed.

The file must not contain any other properties. The file name must be in lower case, the same as the integration directory name.

The Klevr Integration Hub Portal shows the display name on the Dashboard charts, in the Search page integration filter and run list, in the Integrations page selector and diagram, and in the file name of a downloaded diagram image. Integrations are sorted by the name that is shown.

The display name is used only by the Klevr Integration Hub Portal. It does not change the names of any Azure resources. The deployment validates the file, and an invalid file stops the deployment.

Integration Overview Documentation

It is highly recommended that an overview of each integration be included, so that it can be displayed alongside the automatically generated documentation in the Klevr Integration Hub Portal.

To do this, include a Markdown file in the integration directory, with the same name as the directory itself. That is:

interfaces
{businessUnitCode}
{domainCode}
{integrationName}
{integrationName}.md

Note that Klevr Integration Hub Portal supports the use of Mermaid diagrams in Markdown files, so it's possible to include (for example) sequence diagrams in the integration overview documentation. This is done by wrapping the Mermaid diagram in a ::: mermaid block as shown below:

# {NAME} Integration

The {name} integration:

* Queries Fabric to obtain {name} data;
* Queries D365FO to obtain a list of {name} records that already exist;
* Merges the two data sets together;
* Determines which {name} records need to be created vs. which need to be updated;
* Splits the {name} records into batches; and
* Prepared ans sends {name} create/update batch payloads to D365FO for processing.

## Integration Overview

::: mermaid
sequenceDiagram
  participant I as Integration Hub
  participant F as Fabric
  participant D as D365FO
  I->>F: Request {name} data
  F-->>I: Return {name} data
  I->>D: Request existing {name} records
  D-->>I: Return existing {name} records
  I->>I: Merge payloads
  I->>I: Mark {name} for create vs. update
  I->>I: Split records into batches
  loop For each batch
    I->>D: Prepare and send batch payload to create or update {name} records as required
  end
:::

Stage Definition Names and Descriptions

All stage definition types support the (optional, but highly recommended) displayName and description properties.

These properties add a short "name" and "description" to each stage's representation in the auto-generated documentation in the Klevr Integration Hub Portal, and careful and considered values for all stages are recommended, to help make the documentation clear and accurate.

Detailed Stage Documentation

Whenever a short "name" and "description" isn't enough, and more comprehensive commentary around a stage is needed, a standard Markdown-formatted file can be added, which will be included as part of the automatically generated documentation for the stage in the Klevr Integration Hub Portal.

When needed, include the Markdown file in the same folder as the stage being documented, with the same filename as the stage (but replacing the .json file extension with .md), and the extra Markdown content for that stage will be automatically included on the next deployment of the integration that includes this stage.

For example, use the following directory and name structure to include a Synchronous API-to-API stage that includes a detailed documentation page in the Klevr Integration Hub Portal:

interfaces
{businessUnitCode}
{domainCode}
{integrationName}
sync
api-to-api
{STAGE_NAME}.json
{STAGE_NAME}.md

Last updated on