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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Authenticate the User from External Website in Dynamics 365 CRM Online V9

(0) ShareShare
ReportReport
Posted on by 55

Anybody guide me about the following:

  • I create an E-Commerce website (This website is Build using ReactJS) for example  (www.xyzbuying.com)
  • User visit this website and SingUp to this website to purchase the Goods.
  • When User SignUp this website their contact must be created in Dynamics CRM 365.
  • The User will receive the Activation Link by email.
  • When User Click on the Activation Link, User will be directed to Set Password Page. After Setting Password, User is free to Place orders.
  • Products from Dynamics 365 CRM online v9 must show in ECommerce Website for Buying.

Would anybody please guide me how I will achieve the above tasks, I will be very thankful for this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    I suggest for your scenario to consider to use a Portal - so that you don't burn CRM licenses for new users.

    Please check docs.microsoft.com/.../administer-manage-portal-dynamics-365

    Regards,

    Radu

  • Amin Developer Profile Picture
    55 on at

    Hi Radu

    I am very thankful for your kind reply.

    Actually My E-Commerece Portal is already online and working with CRM 2011 On-Premise. Now we only have to replace the backend with API that will smoothly communicate with Dynamics 365 CRM Online v9.

    Thanks

    Amin

  • David Jennaway Profile Picture
    14,065 on at

    If your portal already uses the CRM 2011 SOAP endpoint using the CRM SDK assemblies (Microsoft.Xrm.Sdk.dll and Microsoft.Crm.Sdk.Proxy.dll), then you may only need minimal code changes. The changes you'd need to make are:

    • Use the v9.x versions of the above assemblies
    • Compile your application to use .Net 4.6.2 or higher
    • If you currently use .Net credentials using e.g. DefaultNetworkCredentials, you'll need to instead pass a Credential with a UserName and Password
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi Amin,

    It looks like you already have a working system with all the features you need but you want to move Web Site to CRM communication into a nice clean API / Gateway layer.

    Microsoft recommends to use Web Api for any new projects as the CRM WCF services will be deprecated and replaced by the Web API in the future.  However, moving to Web Api will be a lot of change to your existing code and learning curve will have to be considered as well.

    Like David suggested, to keep the changes minimal, you could upgrade your assemblies and get it working. Since most of the Dynamics CRM integrations around the world were built using WCF based Org Service, Microsoft will do the heavy lifting and allow us to keep usign Org service but behind the scene it would be repalced by Web API, I am sure there will be some limitations or changes but that would be minimal .

    When you move the CRM code into API, you could create that as a proper REST service in case if you wil be integrating with more devices and clients in the future.

    Hope this helps

  • Amin Developer Profile Picture
    55 on at

    Dear All

    Many many thanks to Radu,David and Kokulan. @David and @Kokulan do you have the sample code to just authentication the V9 Web API for user registration, login and crud operations. I will be very thankful to you guys for this.

    Look forward for your kind reply.

    Thanks

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi Amin

    My first question would be are you sure you want to use web api or you want to stick to Org Service that your web site uses at the moment?  I am asking this because you will have to re-write almost all of your queries and helper codes to work with Web API. But if you stick to Org Service you only have to update the SDK assemblies, your code does not change much but you will more chance to refactor your code. So the choice is yours really.

    If you definitely want to go for Web Api approach and if you plenty of time to re-write the queries and helpers, please see the following

    Have a quick read of this link to see the difference between the options you have :

    community.dynamics.com/.../authentication-in-dynamics-365-web-api-and-difference-between-microsoft-dynamics-365-web-api-organization-service-and-organization-data-service

    Follow these to get your authentication and authorization worknig

    debajmecrm.com/.../step-by-step-guide-query-dynamics-crm-web-api-using-server-to-server-authentication-with-application-user

    www.youtube.com/watch

    docs.microsoft.com/.../connect-customer-engagement-web-services-using-oauth

    docs.microsoft.com/.../authenticate-web-api

    When you build your queries you can use the REST builder and POSTMAN

    docs.microsoft.com/.../use-postman-perform-operations

    github.com/.../CRMRESTBuilder

    Loads of Web API examples from Microsoft

    docs.microsoft.com/.../web-api-samples

    Hope this helps

  • Amin Developer Profile Picture
    55 on at

    Dear Kokulan

    Firstly I am very thankful to your kind help and reply.

    Actually, My team do not want stick on Org Service, as This Org Serive will be deprectaed in coming version and no more supported. Therefor we want to work on WEB API.

    Please guide me futher if I am on right direction.

    Look forward for your kind reply.

    Thnaks

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi Amin,

    Microsoft will update the SDK assemblies to use Web Api instead of the WCF service.  Please see below

     

    "The SDK assemblies will eventually be migrated to internally use the Web API instead of the 2011 SOAP endpoint. When this happens, any code written using the SDK assemblies will continue to be supported as it will automatically transfer from the 2011 SOAP endpoint to use the Web API. This update will be fully transparent to you; additional details will be published in future SDK releases. More information: Microsoft Dynamics CRM 2011 endpoint"

    ScreenClip-_5B00_216_5D00_.png

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/choose-development-style 

    What this means is you dont need to change your current code to Web API, which is a lot of re-write. That's why Microsoft will do the heavy lifting for us. 

    You can explain to your team, SDK Assembly Organization Service classes are not going to be deprecated, Its the WCF end point will be deprecated in the future. The SDK assemblies will continue to work and they will use Web API/ OData end point instead of WCF. This change will be made by Microsoft.

    But if you guys ready to spend time and money on this to definitely go for Web API and re-write your code, please see the following 

    Have a quick read of this link to see the difference between the options you have :

    community.dynamics.com/.../authentication-in-dynamics-365-web-api-and-difference-between-microsoft-dynamics-365-web-api-organization-service-and-organization-data-service

    Follow these to get your authentication and authorization worknig

    debajmecrm.com/.../step-by-step-guide-query-dynamics-crm-web-api-using-server-to-server-authentication-with-application-user

    www.youtube.com/watch

    docs.microsoft.com/.../connect-customer-engagement-web-services-using-oauth

    docs.microsoft.com/.../authenticate-web-api

    When you build your queries you can use the REST builder and POSTMAN

    docs.microsoft.com/.../use-postman-perform-operations

    github.com/.../CRMRESTBuilder

    Loads of Web API examples from Microsoft

    docs.microsoft.com/.../web-api-samples

    Hope this helps

  • Verified answer
    Amin Developer Profile Picture
    55 on at

    Dear Kokulan

    I am very thankful for your kind reply. Now everything is clear. Thanks a lot.

  • Verified answer
    Kokulan Profile Picture
    18,054 on at

    If it answered your question, please mark as verified so that it might help other community users as well.

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans