How to get id from subgrid rows - CRM 2013 RRS feed

  • Question

  • Hi,

    In CRM 2013, I need to retrieve the id and value of the another cell. I did not find a function that would return me one id at a time, I just got an array with all ids.

    Someone how in the versions crm 2016 / 2015 
    var firstEntityId = Xrm.Page.getControl("Contacts").getGrid().getRows().get(0).getData().getEntity().getId();
        // firstEntityId == "{13CD16BD-3EC4-E411-80CF-00155DB58496}"

    is not work in CRM 2013.

    I found the controls: gridControl.get_allRecordIds(); and control.get_selectedIds(); 

    but I need to get each id in a loop for, so salve id and value of another cell to create another record entity.

    I apreciate Help.


    Monday, January 15, 2018 1:03 AM