Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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>

 

  • ScottDurow Profile Picture
    1,039 on at
    Re: webApi error when using Retrievmultiple

    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 

  • kevinadstech Profile Picture
    3 on at
    Re: webApi error when using Retrievmultiple

    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?

  • Goutham A Profile Picture
    76 on at
    Re: webApi error when using Retrievmultiple

    Thank you Scott!!

     

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

  • Verified answer
    ScottDurow Profile Picture
    1,039 on at
    Re: webApi error when using Retrievmultiple

    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

  • v-xida-msft Profile Picture
    on at
    Re: webApi error when using Retrievmultiple

    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,

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard