cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Creating Collection from SQL

I want to create a collection based on a SQL table. I'm not too sure of the syntax to use.

 

Thanks

4 REPLIES 4
Highlighted
Meneghino
Level 10

Re: Creating Collection from SQL

ClearCollect(MyCollection, 'dbo.MyTable')

Anonymous
Not applicable

Re: Creating Collection from SQL

Hi @Meneghino,

 

When I use that I get an error saying that it can only be used on an action rule. What does this mean? 

 

Thanks

Meneghino
Level 10

Re: Creating Collection from SQL

It means that it is an action, so it needs to be for example set as the OnSelect property of a button, icon or other control.

Or as the OnStart property of the first screen, or as the OnVisible or OnHidden property of any screen.

Meneghino
Level 10

Re: Creating Collection from SQL

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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