locked
Open specific form depending on form-name RRS feed

  • Question

  • Hi. 

    We are using the following code to open a specific form: 

    function opennewfprm()
    {
    var parameters = {};
    parameters["formid"] = "d56528dd-f043-4009-ab44-c0cea7dc6963";
    Xrm.Utility.openEntityForm("lead", null, parameters);
    }

    However we need to use the specific name of the form instead of the GUID. 

    Anyone who knows if that is possible? 

    Thanks. 

    Monday, January 12, 2015 9:58 AM

All replies

  • Hello,

    That is not possible without additional development.

    I would suggest following:

    1. Build OData query that will fetch formid by form name like https://OrgName.crm.dynamics.com/xrmservices/2011/OrganizationData.svc/SystemFormSet?$select=FormId&$filter=Name eq 'Account'

    2. Retrieve formid and use it in your script.


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Monday, January 12, 2015 10:08 AM
    Moderator
  • Thanks,

    thats what i thought! 

    Monday, January 12, 2015 10:40 AM