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 :
Customer experience | Sales, Customer Insights,...
Answered

Dynamics 365 SDK Help

(0) ShareShare
ReportReport
Posted on by 80

Morning,

I'm trying to connect to Dynamics 365 Customer Engagement (online) (v9) inside SSIS. I have it down to a point where it refuses to log in to the service. I'm a bit new to the SDK and CRM but i have a background in programming in other languages. I have a script component in SSIS in C# which has the below line that is causing the issue, i just keep getting an error "Unable to log on to Dynamics CRM"

Not really in a position yet to pay for connectors like Kingswaysoft so wondering if anyone can see anything obvious i'm missing ?

CrmServiceClient crmSvc = new CrmServiceClient("AuthType=Office365;Username=xxx.xxx@xxx.onmicrosoft.com;Url=">xxx.api.crm4.dynamics.com/.../Organization.svc

I have the same question (0)
  • djdave022002 Profile Picture
    80 on at

    Just to clarify that line as the formatting throws it a bit there:

    CrmServiceClient crmSvc = new CrmServiceClient("AuthType=Office365;Username=xxx.xxx@xxxxxx.onmicrosoft.com;Url=xxx.api.crm4.dynamics.com/.../Organization.svc

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, 

    Please refer to this link: 
    https://carldesouza.com/connecting-to-dynamics-365-using-crmserviceclient/

    Something is wrong with the URL, please check: 

    var connectionString = @”AuthType=Office365;Url=yourcrm.crm.dynamics.com/;Username=youremail;Password=yourpassword”;

    Hope this helps;

  • Suggested answer
    djdave022002 Profile Picture
    80 on at

    Thanks  - I have solved this - it was me being a bit daft, i had MFA enabled on my account and that was the cause, as soon as i used a service account with MFA disabled - BOOM all worked.

  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    HAHA, no problem.

    Please close the Thread.

  • Suggested answer
    Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    The 2 options that you can explore Azure App Password and Azure AD Conditional Access

    www.mdsny.com/.../

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 66 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 45

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans