cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spawn10
Level: Powered On

How do I pass in an argument when I create a collection?

I am trying to retrieve some data via an API call. I have successfully created the connector and when I run the test, I see data in the response. Within the app, I was thinking of creating a collection with the api call, but I am having trouble with creating the collection because I can't seem to determine how to pass the parameter in the argument. 

On my screen, I have a comboBox, that I am populating with data from the API...this part works just fine. Based on the selected choice in the comboBox, I want to display data related to the choice picked in a Gallery. On the OnVisible property of my screen, I am doing this

ClearCollect(myCollection, APIConnector.GetMyData(myComboBox.Selected.id))

But that doesn't seem to be working. Any ideas on how I can get to pass the id of the value selected in the comboBox to this API call, which will return everything associated with that selection onto my gallery?

Thanks for the help.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 89 members 4,872 guests
Please welcome our newest community members: