Search code examples
dynamics-crm-2011dynamics-crmcrmdynamics-crm-4

Dynamic CRM trial login integration with .NET


I need to create POC applicaiton which make API call to Dynamic CRM from .NET. For time being, I don't have CRM actual account, it will be avaibale after POC.

Can any one share me how it could possible ? it is possibel through trial login of CRM and that allow to create account ?


Solution

  • First start a Dynamics CRM Online trial from here:

    http://www.microsoft.com/en-us/dynamics/crm-free-trial-overview.aspx

    After you download the latest CRM 2013 SDK from here:

    http://www.microsoft.com/en-us/download/details.aspx?id=40321

    After you can use this code (simplified connection) to connect and create an account:

    CrmConnection crmConnection = CrmConnection.Parse("Url=https://XXX.crm.dynamics.com; Username=user@domain.onmicrosoft.com; Password=passwordhere;");
    OrganizationService service = new OrganizationService(crmConnection);
    
    Entity account = new Entity("account");
    account["name"] = "Test Account";
    
    Guid accountId = service.Create(account); 
    

    Refers to this msdn article for create the right connection string

    Simplified Connection to Microsoft Dynamics CRM