Therefore⢠Documents |
Scroll |
Endpoint: tfdocuments
Supported operations: GET, POST
This endpoint enables access to the Therefore-Documents table, stored in BC. The table contains link between entries in BC and Therefore⢠documents. For every document that shows up in the Drop Zone, an entry in this table must exist.
Examples:
⢠Check if a Therefore⢠document is already to BC
This can be done by sending GET request and applying a filter for āThereforeDocumentNoā.
There is no body required.
https://bcserver:7048/bc/api/therefore/connector/v1.0/tfdocuments?$filter=ThereforeDocumentNo eq 1234
⢠Link a Therefore⢠document to an object in BC
This can be done by sending a POST request to tfdocuments endpoint.
Sample Body:
{
"ThereforeDocumentNo": 1234,
"TableID": 38,
"DocumentType": 2,
"DocumentNo": "4321",
"CategoryNo": 11,
"AdditionalInfo": "Linked with REST",
"Filename": "invoice_4321.pdf"
}
This will create a link between Therefore document number 1234, stored in category 11 and a Purchase Invoice in Business Central (Table 38, type 2). The link will show up in the Drop Zone of the Connector, as invoice_4321.pdf. The AdditionalInfo is an optional comment, visible in the Therefore-Documents table.