Create Doc Link

In this step, the link between the created invoice and the Therefore™ document are created. This will make the invoice appear in the Drop Zone of the Therefore™ Business Central Connector.

Endpoint:
https://api.businesscentral.dynamics.com/v2.0/<environment name>/api/therefore/connector/v1.0/companies(<company id>)/tfdocuments

Body Mapping:

JSON Name JSON Value

ThereforeDocumentNo

WF.MainDocNo

TableID

38

DocumentType

2

DocumentNo

IndexData.GetField("Invoice_No")

CategoryNo

<Therefore™ category number for this workflow>

AdditionalInfo

<Optional text>

Filename

<The file name that should be shown in the Drop Zone>

38 is the Table ID of the Purchase Header in Business Central.

Response Mapping:

Category Field Assignment

LinkId

CreateDocLink.GetValue("LinkID");