CRM 2011 - JavaScript - Get selected records from grid RRS feed

  • Question

  • Hi!

    I need to send selected records ids to my custom application when i click in a ribbon buttom.

    I'm using this code:

    var ids = window.dialogArguments.window.document.getElementById("crmGrid").control.get_selectedIds();

    this code is working fine.

    the problem is when i get the ids from crmgrid inside of relationship entity.


    Contact Entity -> Click ribbon button -> work fine.

    Account Entity -> Click Contact relationship -> click ribbon button -> dons't work.

    have any code wich work for both scenario?

    Wednesday, November 20, 2013 11:49 AM

All replies