Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Property 'navigateTo' does not exist on type 'Navigation'.

Posted on by 5

I am currently working on PCF Controls in D365 Server version: 9.2.21094.00131.

I tried editing one of our custom controls using PCF Builder in Xrmtoolbox.

pastedimage1634637424526v1.png

But when I clicked the 'Open in VS Code' button to edit the index.ts file, there is an error on the 'navigateTo' method.

I can do some edit on this PCF control but with this error, build is always failed.

pastedimage1634637703047v3.png

Looking into this link https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/navigateto , only the 'navigationTo' method is missing on the ComponentFramework.Navigation from componentframework.d.ts file.

It is available though in Developer Tools (F12). and I already tried the npm update but still have the same error.

pastedimage1634638303428v4.png

Is there other way(s) to manage to work the 'navigateTo' method? Or something that can be replaced by with another method?

Thank you.

  • riko4 Profile Picture
    riko4 5 on at
    RE: Property 'navigateTo' does not exist on type 'Navigation'.

    Hi Steve,

    This is really helpful.

    I tried the workaround on the link you provided and it worked.

    Thank you.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Property 'navigateTo' does not exist on type 'Navigation'.

    Hi riko4,

    In PCF API(docs.microsoft.com/.../navigation, the navigateTo method is not listed. 

    I think this is not supported in it. I found a blog about this and there is a workaround in it, you could have a try:

    dianabirkelbach.wordpress.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans