pdfDocument resource type
Represents a pdf document in Business Central.
Note
For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET pdfDocument | pdfDocument | Gets a pdf document object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
salesInvoice | salesInvoice | Gets the salesinvoice of the pdfDocument. |
salesQuote | salesQuote | Gets the salesquote of the pdfDocument. |
salesCreditMemo | salesCreditMemo | Gets the salescreditmemo of the pdfDocument. |
purchaseInvoice | purchaseInvoice | Gets the purchaseinvoice of the pdfDocument. |
purchaseCreditMemo | purchaseCreditMemo | Gets the purchasecreditmemo of the pdfDocument. |
Properties
Property | Type | Description |
---|---|---|
id | GUID | The unique ID of the pdf document. Non-editable. |
parentId | GUID | The ID of the parent entity. |
parentType | NAV.attachmentEntityBufferDocumentType | The type of the parent document of the pdf document. It can be " ", "Journal", "Sales Order", "Sales Quote", "Sales Credit Memo", "Sales Invoice" or "Purchase Invoice". |
pdfDocumentContent | stream | The content of the PDF document. |
JSON representation
Here is a JSON representation of the pdfDocument resource.
{
"id": "GUID",
"parentId": "GUID",
"parentType": "NAV.attachmentEntityBufferDocumentType",
"pdfDocumentContent": "stream"
}