cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DianaBirkelbach
Super User
Super User

WebApi or metadata requests inside harness

Right now using WebAPI requests (retrieveRecord, createRecord, ...) or Utility.getEntityMetadata pcf-sdk requests inside harness fails.

I can understand why, but this will make harder to make real development/testing inside harness.

There is already an idea about dataset harness sample data: https://powerusers.microsoft.com/t5/PowerApps-Ideas/Allow-sample-data-for-DataSet-component-in-harne...

 

Would it be possible to allow us to define some sample data for the webAPI requests? That would allow us to make also some unitests.

Or maybe we could configure a connection to CRM/CDS, where this requests could take the data inside harness too?

Is there another way to work arround this problem?

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
3 REPLIES 3
alchin
Microsoft
Microsoft

Hi Diana,

 

As you point out making WebAPI calls in the harness is not supported today.  We have explored some options to test scenarios where custom controls make WebAPI calls.  We are still evaluating these options.  However, at the moment there isn't a workaround for testing these calls.

 

Thank you,

Alex

Hi Diana,

Logging as idea\feature request for the same will help here. 

https://powerusers.microsoft.com/t5/News-Announcements/Feature-requests-Ideas-for-PowerApps-componen...

 

hemant

Thanks Smiley Happy

I've postet it here: https://powerusers.microsoft.com/t5/PowerApps-Ideas/PCF-WebApi-and-Metadata-Requests-inside-harness/...

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,083)