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.
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.
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.
Is there other way(s) to manage to work the 'navigateTo' method? Or something that can be replaced by with another method?
Thank you.
Hi Steve,
This is really helpful.
I tried the workaround on the link you provided and it worked.
Thank you.
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:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156