cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyNeutron
Helper II
Helper II

Trouble grabbing data from a connector that works

I set up a custom connector and it works. I have a GET function currently that grabs all the column info for a particular record. I tested the connection out, got 200 OK response, and the returned body shows the pieces of data that I want in JSON format. 

 

However, when I try to use that connection in the actual app to get data, I don't get the information I want. The app has a button and a gallery. The button's OnSelect property is set to the following: 

ClearCollect(CollectionName, ConnectDemo.GrabData())

 

The gallery displays CollectionName. However, all I see is one entry that says true. When I go into data collections, I see that CollectionName only has a value column with with one record set to "true". 

 

I'm wondering what I'm doing wrong. I can see the data in the "body" section whenever I test the connector but how can I grab that data and put it into a collection? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @JimmyNeutron ,

 

Did you fill in the response?

If not, please fill in it.

vxiaochenmsft_0-1627355729279.png

 

Please follow the steps.

1\ Copy the response's body in Test.

2\ Go to 'Definition' to add a response.(Copied information)

3\ Update the connector.

4\ Delete the previous connection and create a new connection

5/ Use this new connection in your canvas app.

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @JimmyNeutron ,

 

Did you fill in the response?

If not, please fill in it.

vxiaochenmsft_0-1627355729279.png

 

Please follow the steps.

1\ Copy the response's body in Test.

2\ Go to 'Definition' to add a response.(Copied information)

3\ Update the connector.

4\ Delete the previous connection and create a new connection

5/ Use this new connection in your canvas app.

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

View solution in original post

StalinPonnusamy
Community Champion
Community Champion

Hi @JimmyNeutron 

As Xiaochen mentioned, We should add "default" under the Response section on the Definition tab. This will show on the designer in PowerApps.

 

StalinPonnusamy_0-1627356749137.png

 

For me, Microsoft should be mandatory or some default. So that users will know this. These same questions are asked by the majority of users who use custom conenector.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,466)