Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

connect external web application to my crm 2016 on-permis in IFD mode

Posted on by 215

hi

i have crm 2016 on-permis and configure it in IFD mode with separate adfs server (win 2012 r2).

how to create record by external web application. "for example account record" 

i don't want to use azure ad connect.

is this any way to do this ?

please help me thanks

*This post is locked for comments

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: connect external web application to my crm 2016 on-permis in IFD mode

    If you will check CRMSDK for CRM 2016 you will find a sample code under SDK\SampleCode\CS\GeneralProgramming\Authentication , you can utilize these classes to connect to your IFD environment.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: connect external web application to my crm 2016 on-permis in IFD mode

    Hi,

    Try this code-

    ===========

    public void TestWhoAmI()

           {

               string _organizationURI;

               OrganizationServiceProxy service;

               ClientCredentials _credential = new ClientCredentials();

               _credential.UserName.UserName = "<domai>\\<username>";

               _credential.UserName.Password = "<password>";

               _organizationURI = "https://<servername:port>/XRMServices/2011/Organization.svc";

               using (service = new OrganizationServiceProxy(new Uri(_organizationURI), null, _credential, null))

               {

                   var userId = ((WhoAmIResponse)service.Execute(new WhoAmIRequest())).UserId;

                   Console.WriteLine(((WhoAmIResponse)service.Execute(userId);

               }

           }

    ====================

    Hope this helps.

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: connect external web application to my crm 2016 on-permis in IFD mode

    You can create custom application to connect your CRM (Premise/online) using CrmServiceClient. You may refer to this link:

    docs.microsoft.com/.../use-crmserviceclient-constructors-connect

    You can open the Connect to Dynamics 365 on-premises (Active Directory).

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans