Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Navigate to an non default view entitylist from a PCF component. Advise needed

Posted on by 15

Hi,

We have an EmailTemplate entity with custom control set as its default control. 

pastedimage1636477932980v1.png

The Email Templates page opens with the records presented in the custom control, as expected. User gets an option on the toolbar to swap to the Read-Only version (see below).

pastedimage1636478224021v2.png

However I need to include a button in the custom control to swap to the Read Only Grid on click. 

Inside the Thumbnails PCF component I need to navigate to the other view Read-only Grid (default) when a user clicks a button in the iFrame. I'm not concerned with how the iFrame and PCF component communicate as that is already in place. I am unsure though how to navigate and avoid opening the entitylist in the default control i.e. the thumbnails control 

I am new to this but reckon I need to call Navigation.navigateTo() as below but do not know how to specify the non-default control i.e. the Read Only Grid.

var pageInput = { pageType: "entitylist", entityName: "emailtemplates" }; // What value should I use for pageType?

Xrm.Navigation.navigateTo(pageInput).then( function success() { // Run code on success }, function error() { // Handle errors } );

Perhaps that is not the correct approach but I have spent the day reading documentation and can't figure it out. 

I would appreciate any help.

Seamus

  • sbarrett Profile Picture
    sbarrett 15 on at
    RE: Navigate to an non default view entitylist from a PCF component. Advise needed

    Thanks for your input Steve.  

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Navigate to an non default view entitylist from a PCF component. Advise needed

    Hi sbarrett,

    I haven't any way to achieve your requirement.(I kind of doubt whether this requirement can be fulfilled)

    However, I don't think navigateTo() method can do this. The value of pageType is listed in the Doc(https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/navigateto) and none of them can be used to change the control. There is a parameter named pageType in the URL, when you change the control, it couldn't be changed. And there is no other parameter in this method can do this, so I think this method could not help you.

    I recommend you open a ticket to get further help from Microsoft.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans