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 error when usin...
Power Apps
Unanswered

webApi error when using Retrievmultiple

(0) ShareShare
ReportReport
Posted on by 76

I am using Powerapps component framework to retrieve data from an entity using retrivemultiple but was thrown with below error.

"Your control is trying to retrieve multiple records. This is not yet supported."

 

Please see my sample code below for reference

 

 let queryString="?$select=revenue&$filter=contains(name,'Sample')&$top=2";

    this._context.webAPI.retrieveMultipleRecords("account"queryString).then
 
//in manifest
        <feature-usage>
            <uses-feature name="WebAPI" required="true" />
        </feature-usage>

 

I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @Goutham ,

    Do you create a Field type or Dateset type PCF control?

     

    Based on the issue that you mentioned, I do not have the issue that you mentioned. 

     

    The context.webAPI.retrieveMultipleRecords() method is only supported for Model-Driven App rather than canvas app. Please check and see if the following blog would help in your scenario:

    https://debajmecrm.com/2019/08/28/solvedwebapi-methods-in-powerapps-component-framework-pcf-custom-control-returning-null-dynamics-365/

    https://www.briteglobal.com/blogs/community/create-naics-pcf-control-webapi/

     

    If the issue still exists, please consider submit an assisted support ticket through the following link:

    https://powerapps.microsoft.com/en-us/support/pro

     

    Best regards,

  • Verified answer
    ScottDurow Profile Picture
    1,039 on at

    This is the error that you get when using the WebApi inside the PCF Test Harness that you get using npm start watch.

    The webApi is not yet supported in the test harness - you will need to deploy to PowerApps to test the webapi calls.

     

    Also - it's worth noting that the WebApi is also only supported in Model Driven Apps and not Canvas Apps at this time.

    Hope this helps

  • Goutham A Profile Picture
    76 on at

    Thank you Scott!!

     

    That makes sense. I am debugging my control in test harness 😞

  • kevinadstech Profile Picture
    3 on at

    So we would have to deploy it to CRM every time we make a small change to test?? That would slow things down majorly.  When is this going to be supported?

  • ScottDurow Profile Picture
    1,039 on at

    You don't really need to deploy each time - you can use fiddler as I describe here for Canvas Apps- https://www.develop1.net/public/post/2020/04/30/debugging-canvas-app-pcf-components-with-fiddler 

     

    or here for Model driven - https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/streamline-javascript-development-fiddler-autoresponder 

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard