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

Notifications

Announcements

No record found.

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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans