How to get All Formids using jscript or c# in crm 2011 RRS feed

  • Question

  • Hello Experts,

    How can I get all form-ids using JavaScript or c# in CRM 2011 

    Thanks and regards


    Thursday, August 1, 2013 7:47 AM

All replies

  • Hi Murli,

    I assume you want the FormId's related to particular entity. Suppose If account entity has 3 Forms then the below JavaScript will return Form Id and Corresponding Form Name.

    var items = Xrm.Page.ui.formSelector.items.get( );

    for (var i in items)


    var item = items[i];

    // Get the Id of the Form

    var itemId = item.getId( );

    // Get the Form Name

     var itemLabel = item.getLabel( ); 


    Please let me know if you need any further help!


    Sunday, August 4, 2013 9:31 AM