Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | All TechTalks | Architecture Insights
How to add an attachment in CRM from external another source through API?
Please help me with this.
You can use Odata API to create notes with attachment in CRM.
Request URL - CRMBaseURL/XRMServices/2011/OrganizationData.svc/AnnotationSet
"notetext":"<span style=\'font-size:22px;\'><span style=\'font-family:Arial,Helvetica,sans-serif;\'>Test Details</span></span>\n\n',
"email@example.com" : "/leads(87fb9831-1573-ea11-a811-000d3a4ed4e6)"
documentbody - you will have to convert your image into base64string.
You can generate API code using Rest builder tool download from below link
Download managed solution zip file and import into your crm instance.
Now only thing you will have to investigate is authentication, since you want to execute this code from external source you will have to do research on authetication part.
Options 2 - Create your own custom web service and expose this web service to external source. From web service code you use organization service c# code to create notes in CRM. You will find the sample code in sdk.
Business Applications communities