locked
integrating with from .net web portal to crm RRS feed

  • Question

  • Hi All,

              Has anyone written a step-by-step article on how to connect a simple .net website to CRM 2011 on premise.

    1. Using Central Database for bot web portal and CRM 
    2. Customization done on Quotation
    3. First re seller will create records from web portal, and then those records will save DB meanwhile in CRM also.

    Please write step by step solution to find the way.

    Regards,

    Charlee

    Friday, May 25, 2012 12:08 PM

All replies

    • Proposed as answer by Alan.M Tuesday, May 29, 2012 8:22 PM
    Tuesday, May 29, 2012 8:21 PM
  • Use this code to create record in crm

    add these dlls

    using Microsoft.Xrm.Sdk.Client;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Query;

    to create recode

            ClientCredentials Credentials = new ClientCredentials();
            Credentials.Windows.ClientCredential.UserName = "xxxxx";
            Credentials.Windows.ClientCredential.Password = "xxxx";
            Credentials.Windows.ClientCredential.Domain = "xxx";

            Uri OrganizationUri = new Uri("http://xxxxx:5555/xxxx/XRMServices/2011/Organization.svc");

            using (OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(OrganizationUri, null, Credentials, null))
            {          
                IOrganizationService service = (IOrganizationService)serviceProxy;
            
                Entity Contact = new Entity("contact");
                Contact["name"] = "test";
                Guid CID = serviceProxy.Create(Contact);

             }








    Friday, June 15, 2012 9:00 AM