I am trying to get the form context of a form in my PCF component. Since Xrm.Page is deprecated, how can we get the form context in PCF Component?
In PCF we use context which is passed as parameter in init and updateView function. You can get pretty much all the things that are in Xrm. You can check the ComponentFramework declaration file or PCF Docs website for more info
How do i get the form context from the context parameter in init function? Is there a method that provides this?
Given that no-one seems to have answered your question I will step in and answer it.
By design PCF components are designed to be self contained and do not have access to the Form context.
Be careful, it depends on what you want to do.
Indeed, the component has its own context but is sent to it from the application so if you want to access particular fields for example, you just have to add them as property of your PCF and you would have access to them.
Check out new user group experience and if you are a leader please create your group
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Don't miss the call this month on June 16th - 8a PDT