locked
CrmConnection NOT GIVE UPDATE RRS feed

  • Question

  • When I create several times the connection with the CRMConnection it does not give me the updated information but those on the first connection as if the connection to read the CRM no read updates that have occurred in the meantime) ...


    Below the code;

    CrmConnection connection = new CrmConnection();
    connection =Connection.Parse("Url=********* ; Username=" + "*****" + "; Password=" + "***");
    connection.ProxyTypesAssembly = Assembly.GetExecutingAssembly();

    XrmServiceContext xrm = null;
    xrm = new XrmServiceContext(connection);

    Monday, February 2, 2015 12:03 PM

All replies

  • Hi,
    try with this syntax:

    CrmConnection crmConnection = CrmConnection.Parse("Url=***; Username=***; Password=***;");
    OrganizationService service = new OrganizationService(crmConnection);
    XrmServiceContext xrm = new XrmServiceContext(service);


    My blog: www.crmanswers.net - Rockstar 365 Profile

    Monday, February 2, 2015 12:23 PM