locked
Fetch all the records in current view RRS feed

  • Question

  • Hello Friends,

    Is there any supported/unsupported way in CRM 2011 to retrieve all the records in a current view ?

    I am going to put a button on grid which will retrieve all the records in current selected view and apply necessarily logic via plug-in.

    Regards,

    Hiren.

    Friday, July 27, 2012 7:29 AM

All replies

  • Hi Solanki,

    You can use OOTB export excel feature to get data into excel with current page view or pls can you provide more detail.....

    Regards,

    Mundra


    • Edited by P_Mundra Friday, July 27, 2012 8:34 AM
    Friday, July 27, 2012 8:28 AM
  • Hi Mundra,

    As I said I want this to work with plug-in.

    Friday, July 27, 2012 8:50 AM
  • Hi Solanki,

    You can try using JS to fetch selected records from grid

    var gridControl = document.getElementById("SubGridName").control;
    var ids = gridControl.get_selectedIds();

    Mean while i can try for plugin also...

    plugin try to use reteive query to fetch to fetch selected records.....you can place one button to select all recods from current view and write plugin to fetch all selected records......

    Regards,

    Mundra

    If you find this post useful please vote it up!

    Friday, July 27, 2012 9:15 AM
  • Hi Mundra,

    Thanks for your time answering.

    What happen with that method is we can only retrieve ID's of selected records only. not all the record in a current view. I want all the records in a current view on all the pages.

    Is there any way I can get the name or ID of current selected view from Jscript ?

    Regards,

    Hiren

    Friday, July 27, 2012 9:17 AM