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)

Client Side SOAP or Web API Authentication to CRM Online using Java Script (External HTML Web Page)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

Do you have any idea on how to connect to CRM Online from an external HTML Web Page using pure Java Script (SOAP or Web API)? I see below blog which works only for CRM Online O365 authentication, looking for CRM Onlne STS authentication

http://jlattimer.blogspot.in/2014/04/soap-authentication-to-crm-online-using.html

Any responses appreciated

Thanks,

Shaik

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    JohnAnonymous Profile Picture
    5,241 on at

    I don't think there's a secure way to authenticate with STS to your SOAP endpoint with JavaScript only. You probably need an intermediate api to do the authentication for you.

  • Verified answer
    Shaik Profile Picture
    Microsoft Employee on at

    This worked for me 

    Use OAuth with Cross-Origin Resource Sharing to connect a Single Page Application to Microsoft Dynamics 365

    https://msdn.microsoft.com/en-us/library/mt595799.aspx 

    I have another question. Is it possible to configure CRM credentials in SPA config (like service credentails) instead of authenticating end customer credentials. In fact we do not need Sing-in page to be displayed to the customer


    We have an Intranet HTML UI page talking to CRM Online (behind the scenes). We need to populate customer details in HTML, which are stored in CRM Contact. Customer is not an user in CRM. We are also evaluating MuleSoft ESB if Client Side does not work out. Appreciate responses

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans