N.Zemp
N.Zemp

Reputation: 33

Dynamics 365 CRM SDK or Rest API

I need to create a CRM E-Mail activity with attachement from code. As far as I know there are two ways to do this. I could use the dynamics 365 CRM SDK or the dynamics 365 CRM Rest API. My question is which one I should use at the moment? I know Microsoft has many good API, but many of them seemed unfinished to me. Can you guys help me out?

Upvotes: 3

Views: 2933

Answers (2)

Daryl
Daryl

Reputation: 18895

I've you're in the .Net Framework, always use the SDK. It hasn't really changed since 2011, and they are slowly porting the calls over from the SOAP endpoint to the WebApi for you, with no work on your end.

Upvotes: 1

If you are doing integration from outside CRM, I would recommend WEB API which is the cross-platform RESTful solution going forward. Before 8.x CRM version - SDK was the only option available (still you can use it today).

The keywords are important, you can find lot of community blogs for code samples & better documentation. You can setup Postman & test the web api endpoints, even you can use CRM REST Builder for development purpose.

Endpoint: <your instance url>/api/data/v9.1/emails

Create Email with attachment using SDK

Create Email using web api

Adding attachments using web api

Upvotes: 1

Related Questions