Options

Add a Base64 encoded PDF as an attachment to a Sales Order in BC

RemcoRemco Member Posts: 81
Hi, I receive a Base64 encoded PDF through a webservice in BC16. I managed to deencode the PDF. My question is what the best way is to attach the PDF to a Sales Order? From the Sales Order I want to be able to open the PDF.

Answers

  • Options
    irasoelbaksirasoelbaks Member Posts: 119
    In my opinion the first step is to try determining which Sales Order the decoded PDF belongs. I don't know if there is already functionality to attach documents to sales order. If so you can extend that functionality ofcourse.
  • Options
    RemcoRemco Member Posts: 81
    Hi, the Sales Order is not an issue. It is in the webservice call. It is more how to store the PDF in BC Saas. Use a Blob field, a Media field or a Media Set field. There is a document attachment table. Should I store the PDF in there? And depending on the solution where to store it, how can I open the PDF from a Blob field, Media field or a Media Set field in a BC Saas environment.
Sign In or Register to comment.