Create A Collection (from a datasource)

Input SharePoint List: mySharePointList

NumberMonth StartDateFavorite
1January1/1/2019false
2February2/1/2019false
3March3/1/2019true
4Chevy4/1/2019false
5April5/1/2019false

Note: could also be another type of datasource: Excel, SQL, Common Data Service, etc.


Output collection: myCollectionName

NumberMonth StartDateFavorite
1January1/1/2019false
2February2/1/2019false
3March3/1/2019true
4Chevy4/1/2019false
5April5/1/2019false


Solution code:

//Create a collection from a datasource
ClearCollect(myCollectionName, mySharePointList)