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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard