Custom Command Display Quick Create Form RRS feed

  • Question

  • CRM 2013 On-Site


    I am able to add commands, buttons, etc. to the ribbon just fine so that is not relevant to this question. I open a new record using this javascript (fired by a custom command attached to a custom button)

    function ABCD_createContact()
        var parameters = {};
        parameters["formid"] = "1FED44D1-rest of guid";
        Xrm.Utility.openEntityForm("contact", null, parameters);

    I can create many different forms and get the guid of each form and use that guid in the "formid" parameter and it will open/create a new record using that form.

    So now I want to open a quick create form. Eventually the idea is to be able to open my custom quick create forms but one step at a time means I'll open an OOB form so I'm using the Contact Quick Create.

    Well thinking perhaps Msoft performs some magic behind the scenes and recognizes a quick create I tried changing the formid parameter to the guid of the quick create.

    Side Note: I obtained the ID for the quick form using frames[1].Xrm.Page.data.entity.getId() but then verified by checking the SystemFormBase table in the database.

    GetID() returned "D7B30CB9-2DA6-E311-93FE-000C293CE5CF" which I couldn't find anywhere. SystemFormBase or UserFormBase?

    SystemFormBase says  "661157FE-2FC9-4EAA-835F-5BFA2F7B64F7" so I went with that.

    So again to be clear what I did was use the SystemFormBase guid for the formid in the above javascript.

    This did not work. It did nothing and there was no error. So I tried the D7b30 guid and that didn't work either. It did nothing and there was no error.

    So then I captured the url Msoft uses when they open a Quick Create Form and came up with:


    So my question is how do I go about opening a quick create form. Do I use an open url action and pass all the above parameters? Do I use the javascript action and add the url parameters to the parameter array like I do with formid?

    Any help would be appreciated!!

    Wednesday, March 12, 2014 1:40 PM