Monday, May 27, 2013

Opening Forms using the Xrm.Utility.openEntityForm



Using the openEntityForm

Opening a New Form

To simply open a form for creating a new record you can use the following line of code. Simply replace account with the entity of your choice.

Xrm.Utility.openEntityForm("account");

Open a Form with an Existing Record

If you want to open a specific record you just add the guid for that record like this:

Xrm.Utility.openEntityForm("account","A85C0252-DF8B-E111-997C-00155D8A8410″);

No comments:

Post a Comment