cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

webApi error when using Retrievmultiple

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>

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

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

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

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

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Super User
Super User

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

View solution in original post

Highlighted
New Member

Re: webApi error when using Retrievmultiple

Thank you Scott!!

 

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

Highlighted
New Member

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?

Highlighted
Super User
Super User

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (3,688)