Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

CRM API ASP.NET CORE On Premise

(0) ShareShare
ReportReport
Posted on by 40

Something knows where I can find information about building crm api .net core in order to create crud requests
I would actually like to use api to get certain information from the outside and also to receive (outside of crm)
Important to note
I want a .net core

  • haimHis Profile Picture
    haimHis 40 on at
    RE: CRM API ASP.NET CORE On Premise

    Hay this is my step

    1.create asp.ne core web api

    pastedimage1626336974056v2.png

    2. core 5.0

    pastedimage1626336989891v3.png

    pastedimage1626337017892v4.png

    Inside this controller in the get function I won to make a async get request in rest to the crm and return the data that come..,  From where I can to config and how I create the rest request ????

    #*# I know that in postman I register to the crm in NLTN config and the get request is work fine, but I don’t thing I can to config with oAuth, I have a user name, password and domain.. maybe I can get more but In any case in asp.net core web api  I don’t know how config at all..

    This is my project files:

    pastedimage1626337031932v5.png

  • Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: CRM API ASP.NET CORE On Premise

    Hi,

    Can you please share, what you have steps you have done and what issues you are facing?

    Are you trying to connect using SDK or Web API?

    If you can share some of your code (for D365 integration part), that would be great.

  • haimHis Profile Picture
    haimHis 40 on at
    RE: CRM API ASP.NET CORE On Premise

    First of all thank you very much!!

    You've brought me a lot to think about.

    And maybe even a certain starting point.

    Actually, my main problem is getting hooked up with crm.

    365 on premise

    I can't connect the asp.net core.

    If I succeed then even a small rest request for crm will give me significant progress.

  • Verified answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: CRM API ASP.NET CORE On Premise

    Hi,

    Thank you for your query.

    You can use the Dynamics 365 Web API for the CRUD operations.

    It is an OData end-point and can be called like any other Web API, for more details see the following:

    Create a table row using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs

    However, you cannot use the Dynamics 365 SDK for .Net Core (as of now).

    If you are looking to use SDK (instead of Web API), try the following, I am not sure if it works though:

    Connect to Dynamics CRM Online using .Net Core SDK – xrm CRM Dynamics (wordpress.com)

    I would suggest you go for Web API route, its simple, you can also try using Postman to send requests (for better understanding):

    Use Postman with Dynamics 365 Customer Engagement Web API (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Docs

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,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans