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)

Getting started with CRM dev using C#

(0) ShareShare
ReportReport
Posted on by

Dear all,

I need to quicly study the way to connect to CRM online and accessing my CRM data and create new one by using c#

I have download the SDk and try to run the basic sample but none of them works and failes during authentication.

The problem with those ready made sample is that it is complicated to follow because you have to idea of clear steps to perform, you have sample already build.

In order to learn easily, is there a place where I could get a real stepe by step guide on how to build a small app which connect to CRM 365 online ?

That would help a lot

thanks

Serge

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alessandro Graps Profile Picture
    2,664 on at

    Hi,

    you can start with ninjadeveloper.com/how-to-connect-to-dynamics-crm-2016-online-and-on-premise-using-a-c-console-application to understand the connection, and after you can follow this examples:

    community.dynamics.com/.../simple-dynamics-crm-console-application

    and

    msdn.microsoft.com/.../jj602970.aspx Here after you can follow all guides.

    Thanks

    A.G.

  • Community Member Profile Picture
    on at

    Thnaks I will give a try.

    When I check the connection string for CRM 365 online in sample app.config, it is wierd to see the user authentication as clear text in config file ? any one can take this account ?

    Does it means Online authentication is not clearly secure by placing credential in config file ? or does credential need to be hardoded ?

    Thanks for advise and comments

  • Verified answer
    PranavShroti Profile Picture
    4,510 on at

    Hi Serge,

    As per best practices, you should encrypt your username and password using a simple .Net utility.

    Within code also password attribute should be declared as "SecureString" and not a normal string.

    Hope this helps.

    Regards,

    Pranav

  • Community Member Profile Picture
    on at

    Hello thnaks for you advise.

    Do you know such simple.net utility to encrypt credential in config file and decrypt while passing them to authentication process ?

    Based on your experience, does the CRM online connection mentionned in first link in this post is the only way to connect now  ? ( in the past I was using direct SOAP )

    In sample linke provide, I can see that they gets the connection by using the follwing using proxy service :

    IOrganizationService service = (IOrganizationService)conn.OrganizationServiceProxy;

    Can't we use also :

    OrganizationWebProxyClient webclient= conn.OrganizationWebProxyClient;

    What is the difference between both ?

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