web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Best way to connect to CRM Online (WebAPI - OrganizationService)

(0) ShareShare
ReportReport
Posted on by 35

Hi,

I wonder what is the best way to connect to CRM. I already use Web Api and OrganizationService. I usually use OrganizationService when I developed service web and I use WebApi on client app side because I need to authenticate users with token.

Is this the good way to do ? Is there more pros and cons ?

Thank you
YD

*This post is locked for comments

I have the same question (0)
  • CU02081233-0 Profile Picture
    35 on at
    RE: Best way to connect to CRM Online (WebAPI - OrganizationService)

    Ok, so im doing well. I use xrm tooling to connect to CRM and "Message Inspectors" to inspect token in service web. In client side, I use web api OAuth authentication to request my webservice with token in header.

    Thanks

  • Suggested answer
    abhishek_255 Profile Picture
    1,614 on at
    RE: Best way to connect to CRM Online (WebAPI - OrganizationService)

    Hi,

    For IFD, web api is more preferable. But it too have limitation.

    msdn.microsoft.com/.../mt628816.aspx

    Best Regards,

    Abhishek

  • Verified answer
    nghieppham Profile Picture
    4,755 on at
    RE: Best way to connect to CRM Online (WebAPI - OrganizationService)

    Yohan,

    According to me, Web API is the best way for integration, if you want to integrate with Mobile or other website. But for integration system, it depends on many factors.

    You can use SSIS to integrate if you want to integrate with Database level.

    You can use custom your wcf service (I recommend to use Xrm.Sdk.toolingconnector) to do that or you can use IServicemanagement to implement your integration service, you can define the class to manage the token. There is 1 sample in sample code of SDK folder.But if you choose this solution, you should consider for CRM Online, because there are limitation of plugin in crm online to connect with external service.

    As I know Organization Data Service is support for CRM 2016 but maybe it will be removed in the future, hence, Web API (Odata v4) is the best way for client script to integrate system now.

    Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans