Hi,
I am using this pcf control .
Model Driven App
-Download the code
-Generate solution-
-Import into Model Driven App
This is working fine
Canvas App
My requirement is to use the same piece of control and same code work in Canvas App.
But when I try to load this control into canvas. I am getting error. "Method not implemented"
Can someone tell me how to fix this?
My required is to call CDS webapi into canvas a
If it is separate there is really nothing you can do - the CDS environment doesn't exist and the canvas app has no way of identifying which environment it should be talking to.
If it is embedded within a CDS environment you could (if you really, really had to and I really really don't recommend it) read the pageUrl and use as the basis to make webapi calls. But you will not have the Xrm interface so you will need to use
We have both scenario.
We are using canvas app separately and embedded in a CDS application also
I don't think there is any easy one.
The purpose of a PCF component is to improve the display of information in the context of the current record - as the current record in a canvas app is not a CDS record there is no need or way to provide the functionality.
Is the canvas app embedded in a CDS application or is it entirely separate to the CDS environment?
Thanks for the reply.
What is the alternate way to call the CDS Webapi into Canvas app ?
Thanks
R.
Sadly you can't do that - once you are in a canvas app there is no CDS environment to call so the Web API feature cannot be used as there is nothing to call.
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1