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.

 

 

StalinPonnusamy
Super User
Super User

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,391)