Hi All
I am aware that the recommended way to test data in the test harness is to load a data file (csv) but was wondering if there was a way to access the CDS WebAPI outside of the deployed control inside of the test harness?
This would expedite development as any live data testing currently requires a build and publish.
Thanks for any help
Hi @nwood2009 ,
If you are talking about csv file for test-harness, I guess you're doing a dataset pcf. Using csv is not very helpful, because the metadata is stil missing in your csv. It's better to test it directly in your App, using live data.
The best way to debug a dataset pcf, is to use the Fiddler autoresponder. Firts you need to upload the pcf (using "pac pcf push" is enough), and bind the pcf against a dataset.
Then, just let the "npm start watch" run, this will continuously bundle for you, and configure the Fiddler Autoresponder to redirect your bundle.js to the bundle.js from your project folder.
There are a few blogs about this:
- Scott Durow for CanvasApps: https://community.dynamics.com/crm/b/develop1/posts/debugging-canvas-app-pcf-components-with-fiddler
- Inogic Blog: https://www.inogic.com/blog/2020/05/debug-power-apps-component-for-model-driven-app/
It might sound like a hack in the beginning, but it works like a charm.
Hope this helps!
Kind regards,
Diana
Hi @nwood2009 ,
Did this help to solve your problem?
Kind regards,
Diana
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
10 | |
8 | |
5 | |
3 | |
2 |