cancel
Showing results for 
Search instead for 
Did you mean: 

PCF: WebApi and Metadata Requests inside harness

For PCF development, can you please provide a way to use the sdk WebApi and Utility.getEntityMetadata inside the harness. This could be some ideas for this purpose, but maybe you have some more:

  • Of course a "fake parser" based on some sample data would be best (something like FakeXrmEasy does for PlugIns (https://dynamicsvalue.com/home), because this way we could make also unitests.
  • There could be some other scenarios like have a connection to a CRM/CDS System somewhere.
  • Maybe the fastest workarround would be to allow us to know at least that the page is running inside harness (some property somewhere); this way we could provide some error handling with sample data. It's not a nice approach, but maybe this could be usefull also for other stuff too (like fake context)

Best regards,

Diana

Status: Completed

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/debugging-custom-controls#t...

 

For dataset type components, you can load a CSV file with test data. You manually create or export in .csv format directly from your environment.

 

 

Comments

I like the idea as well, a few more options to use real datasets.  preferably with less coding (eg. point it to a CDS or D365 datasource, pick an entity or provide a fetch query)... i know thats a bit of an ask.

peterv333
Power Apps

Great idea! We are working on adding mock dataset data support in the harness.

peterv333
Power Apps
Status changed to: Started
 
HemantG
Power Apps
Status changed to: Completed

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/debugging-custom-controls#t...

 

For dataset type components, you can load a CSV file with test data. You manually create or export in .csv format directly from your environment.