I have a stand alone web resource linked from the site menu in a Model Driven App. It does multiple api calls using parent.Xrm.WebApi and currently works fine.
According to Microsoft deprecation notice, https://learn.microsoft.com/en-us/power-platform/important-changes-coming, parent.Xrm will be going away and no longer work for standalone Web Resource. Xrm.WebApi without referencing the parent throws an error "Xrm" is not defined.
Can anyone help with a supported way to access Xrm.Utility and Xrm.WebApi from a standalone web resource?
Latest documentation update:
On this particular piece, so far nothing documented as workaround or alternate solution from Microsoft. I created a github issue for the assistance and it is still open.
Between, I came to know about one of the MS employee unofficial side project and code sample from this blog. That is also about to be confirmed as supported.
All we have to do is just download the
Xrm.min.jsfile as web resource and this has to be referred in our HTML web resource to consumeXrmthe same way as earlier.We can keep a close eye on this library and github issue for further updates and concrete communication.