Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Consume Dynamics CRM Web API secured through ADFS

Posted on by 187

Hi,

I have requirement to connect to Microsoft dynamics CRM On - Premises through ADFS from Console Application. We should not any SDK reference DLL's in program.

Can anyone help?

CRM : On-Premise

Connectivity : Console application -> ADFS-> CRM On Premises ( With out using SDK)

*This post is locked for comments

  • Balaji Karpurapu Profile Picture
    Balaji Karpurapu 187 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    I am able to perform CRUD operations using WebApi from Console Application  for On premises but it's only working after disable IFD, Claim Based from Deployment Manager. Can we do the CRUD operations without disabling IFD and Cliam Based???

  • Suggested answer
    Balaji Karpurapu Profile Picture
    Balaji Karpurapu 187 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Hi Flydancer,

    Yes. I am looking for the same code for CRM On Premises.

  • Balaji Karpurapu Profile Picture
    Balaji Karpurapu 187 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    I am looking for this kind of connectivity for Dynamic CRM On-Premises. Below Article for Online

    ansrikanth.com/.../

  • Suggested answer
    Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    You can use simple http requests to call the API, no SDKs needed.

    See docs.microsoft.com/.../simple-web-api-quick-start-sample-csharp for example

  • Suggested answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Well, if you are not going to use any operations and just want to read data from CRM onprem, then the only option is to use SQL server directly. You can ping views and get read only data from CRM.

    Its as good as querying a SQL database using ADO.Net in a .Net console app. This is generally used in reporting.

    Hope this helps,

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Even for connection of CRM with console app you must need to include dll

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Hi,

    What will you do after connection if not using for CRUD. If you share your requirement then there may be some better alternate way.

  • Balaji Karpurapu Profile Picture
    Balaji Karpurapu 187 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Hi Pravin,

    We just need to connect CRM through ADFS and we are not going to any CRM CRUD operations.

    Any alternative

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Hi Balaji,

    I'm surprised here to see your requirement, actually in SDK dll's reference all method definition available that we need to implement while retrieving service of CRM.  

    Without dll you couldn't do that.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Consume Dynamics CRM Web API secured through ADFS

    Hi,

    Without SDK dll's you won't be able to connect. What is the concern using SDK?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans