locked
CRM 2013 - Retrieve datas to update records via Outlook Offline mode RRS feed

  • Question

  • Good morning,

    I have a question about Outlook Offline mode functionnality.

    From "Opportunity" entity, i'm trying to retrieve "Account" datas and store it into some opportunity fields (Address, Name etc...).

    I've made a JScript request that you can see below :

     accEntity = "AccountSet";
                    accODataFilter = "?$select=sch_Codeclient,sch_GroupeClients,sch_GroupederemiseClient&$filter=AccountId eq (guid'" + accountId + "')";
                    accODataSelect = serverUrl + odataEndPoint + "/" + accEntity + accODataFilter;
    
                    $.ajax({
                        type: "GET",
                        contentType: "application/json; charset=utf-8",
                        datatype: "json",
                        url: accODataSelect,
                        beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
                        success: function (data, textStatus, XmlHttpRequest) {
                            if (data.d.results.length > 0) {
                                codeClient = data.d.results[0].sch_Codeclient; // Code client
                                grpRemClient = data.d.results[0].sch_GroupeClients; // Groupe client
                            }
                        },
    
                        error: function (xmlHttpRequest, textStatus, errorThrown) {
                            alert("Status: " + textStatus + "; ErrorThrown: " + errorThrown);
                        }
                    });

    This is working in Online mode but when i'm using CRM via Outlook in Offline mode, i get the error message from the error function.

    I can see in some websites that in offline mode, we can't retrieve datas by requesting CRM server and that's logic. I saw in some websites that datas are stored locally in the computer.

    How i can retrieve datas in offline mode ?

    Thank you for your help.

    Regards,

    Jean

    Wednesday, June 11, 2014 8:23 AM