Insert PDF into CRM database with Web.API

86 views Asked by At

I have a C# Service generating a PDF document. After that I need to create a new record in CRM 2016 by using the Web-API and insert the generated PDF

Is this possible with the CRM Web-API? Any hint?

1

There are 1 answers

1
Alex On

Sure you can.

Base64-encode the content and put it inside the documentbody field of an annotation. The correct MIME-type is application/pdf