Create DocLink |
Scroll |
Creates the link between the created invoice and the Thereforeā¢ document.
This will make the document appear in the DropZone, similar to a mapping.
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") |
CagegoryNo |
<Thereforeā¢ CategoryNo for this WF> |
AdditionalInfo |
<Optional text> |
Filename |
<file name that should be shown in DropZone> |
BC Table 38 Purchase Header
Response Mapping:
Category Field |
Assignment |
InvoiceID |
Json.GetValue("LinkID") |