web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    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/.../

  • riko4 Profile Picture
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 337

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 104 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 79 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans