Open Entity Record as a Modal Popup in Dynamics 365 CE Release Wave 1 2020

Hi Everyone,

Today I was testing new features of PowerApps Release Wave 1 2020 in trial instance and found that now we can open Entity record as a popup.

Here is the piece of code and it is supported only for opening records in the system.

  Xrm.Navigation.navigateTo({
        pageType: "entityrecord",
        entityName: "contact",
        formType: 2, // Only Edit Mode is supported now. 
        entityId: "27f1a9f5-936d-ea11-a811-000d3a3e14c7"
    }, {
        target: 2,
        position: 1,
        width: 900,
        height: 600
    });

We can also open the record in a specific form by just providing the formId. Try below.

 Xrm.Navigation.navigateTo({
        pageType: "entityrecord",
        entityName: "contact",
        formType: 2, // Only Edit Mode is supported now. 
        formId: "293c878f-f068-40a0-ae48-4297e060871c",
        entityId: "27f1a9f5-936d-ea11-a811-000d3a3e14c7"
    }, {
        target: 2,
        position: 1,
        width: 700,
        height: 600
    });

Hope this helps.


Happy 365’ing
Gopinath

2 thoughts on “Open Entity Record as a Modal Popup in Dynamics 365 CE Release Wave 1 2020

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s