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)

Angular 6 and on-premise Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm developing a SPA using angular 6, and I want to connect and use (CRUD operations) a Dynamics365 on-premise instance.

Most of examples around use Azure for authentication, which is a no-go for me.

I'm trying to start with the basics and just perform some sort of authentication, but I can't.

I looked around and it seems in the past we had to use webresources to host our js files, but now, it should be easier with CORS.

What am I missing ?

Thanks,

IG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi,

    IF you are direct trying to connect MS CRM in js, you have to use web api and Azure for authentication. Otherwise make a middleware to wrap Dynamics crm service and exposes it as you need in angular code.

  • Community Member Profile Picture
    on at

    I thought the latest version would facilitate the interaction of SPA's and Dynamics. Adding another layer, means more code to be maintained.

  • Suggested answer
    Shaminderpal Singh Profile Picture
    1,565 on at

    Hi Isidro,

    The latest version facilitates the interaction however you require oauth2.0 rouute which you mentioned is not feasible for you.

    The only other way for you is to host the page inside crm domain in isv folder(but that is unsupported)

    If you can expose a server side api,then you can internally call crm via sdk dll and consume it in your angular app.

    I did the same thing in single page applications and it give you more control.

    -Shaminder

  • Community Member Profile Picture
    on at

    So, for an on-premise D365 instance and using an Angular6 SPA, from your experience would you say it's better to have a middle layer (web api 2), and have that "talking" to the instance using the sdk dll ? Then all the SPA would need was connect to the web api 2 layer ?

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 March 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