Skip to main content

Notifications

Announcements

No record found.

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

  • CU02081233-0 Profile Picture
    CU02081233-0 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
    abhishek_255 1,612 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
    nghieppham 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans