I am trying to attach the file in Attachment of purchase invoice , general Journal record in dynamic 365 business central using SOAP API "https://{businesscentralPrefix}/api/v1.0/companies({id})/attachments" .
I need to pass ParentId & FileName to API to create the attachment.
please guide me where I can get the ParentId of records to create the attachment.
Thanks In Advance