Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

(0) ShareShare
ReportReport
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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans