We are using Attachment API to add/get Attachment for different parantTypes as per the documentation https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_attachment
I have a few doubts about it:-
- How to attach a file while creating any Attachment using CREATE/UPDATE API
- Which credential should I use to access mediaReadLink from the Create response?
- As per the GET Attachment document parentType should be / /, /Journal/, /Sales Order/, /Sales Quote/, /Sales Credit Memo/, /Sales Invoice/ or /Purchase Invoice/. but in CREATE if I use parentType as /Sales Invoice/ or any other from the list then in response it shows parentType as /Sales_x0020_Invoice/. So which one should we use?
- We added a few Attachments manually through UI but in GET Attachment for that parentId it's showing not showing any attachments, so could you help on how to add attachments manually as well?
Thank you in advance, your help is appreciated
Thanks,
Railz