locked
JQuery problem RRS feed

  • Question

  • Hi good morning! I have a problem, this code only whorks whit one label, not for more :(, somebody know why?

    The code bring the information from a lookup field of an entity, what I want is that I bring another field part of the same entity but it does not bring more.

    function obtener2() {
        var codigoPostalId = Xrm.Page.getAttribute("pfz_codigopostal").getValue()[0].id;    
        var entidad1="pfz_codigopostal";
        var resultadoName1;
        var resultadoId1;
        SDK.JQuery.retrieveRecord(
         Id1,
         entidad1,
         null, null,
         function (pfz_codigopostal) {
                 resultadoId1 = pfz_codigopostal.pfz_brick.Id;
                 resultadoName1 = pfz_codigopostal.pfz_brick.Name;
         },

         function () {
             alert("Error occured.");
         }
       );
    }

    Thanks



    • Edited by NaomiOro Tuesday, October 22, 2013 3:45 PM
    Tuesday, October 22, 2013 3:24 PM

All replies