DEV Community

Discussion on: Get Started with Power Apps Component Framework (PCF)

Collapse
 
pavankuram profile image
pavankuram

It will be a great if you can refer me to an example which select and update records to CDS.

Thread Thread
 
cassiebreviu profile image
Cassie Breviu

You will want the Xrm.WebApi client API:
docs.microsoft.com/en-us/powerapps...

Here are the docs on the methods with the update method selected and sample code:
docs.microsoft.com/en-us/powerapps...

Thread Thread
 
pavankuram profile image
pavankuram

Can we use xrm.webapi in PCF component?

Thread Thread
 
cassiebreviu profile image
Cassie Breviu

Should be able to. Here is an example of a web api pcf component. docs.microsoft.com/en-us/powerapps...

Thread Thread
 
pavankuram profile image
pavankuram

Thanks for your direction on this Cassie.. I have implemented webapi and tried to create a record . Though i impemented createrecord() after i deployed and got the component into canvas app , It throws an error that CreateRecord method is not implemented. Not sure where did i do the mistake.

Thread Thread
 
cassiebreviu profile image
Cassie Breviu

Is the source on github? Can you send me a link?