I am trying to get attachment from business central through postman but it keeps asking me for a parentID, how do I get this parentID?
in the v22 release of Business Central it is possible to obtain the attachment of table 1173 with this call:
api.businesscentral.dynamics.com/.../salesInvoices
up to release v21 you can only have expand=attachments (table 130)
if you want to get all attachments in table 1173 , you can use the call:
if it helped you, please select this answer, thank you
is it possible to get documents attached to a posted sales invoice? im trying to get reports attached through table 1173
are you sure the attachment is in the right section? this API reads table 130, not 1173.
Check which section your document has the attachment in.
If it is not in the indicated section, you can upload it via the appropriate action:
after i added the parentId and the parentType, no values are showing in the "value" section, it's just empty
Hello the correct syntax for retrieving attachments is as follows:
https://api.businesscentral.dynamics.com/v2.0/TenantID/environmentName/api/v2.0/companies(companyId)/attachments?$filter=parentId eq SYSTEMID and parentType eq 'RECORDTYPE'
RECORDTYPE can take these values:
" "
Journal
Sales Order
Sales Quote
Sales Credit Memo
Sales Invoice,
Purchase Invoice
Purchase Order
SYSTEMID is relative to the record that has attachments (e.g. the systemid of a Sales Invoice, a Journal)....
if it helped you, please select this answer, thank you
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156