web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / WebApi or metadata req...
Power Apps
Unanswered

WebApi or metadata requests inside harness

(0) ShareShare
ReportReport
Posted on by 3,072 Most Valuable Professional

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-harness-pcf-start/idi-p/292499

 

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?

I have the same question (0)
  • alchin Profile Picture
    Microsoft Employee on at

    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

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    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-component-framework/m-p/292415#M256

     

    hemant

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard