web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / loading a data set int...
Power Apps
Answered

loading a data set into a variable in OnStart

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am creating a variable at OnStart: set(pipeline_candidates, 'Pipeline Candidates')

 

However the data is different when I just load the two data sets into a gallery.

 

Any idea why?

 

Screen Shot 2020-07-11 at 5.07.34 PM.png

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @morall ,

    What is "Pipeline Candidates'? Is it a field in a list?

    Try the below

     

    ClearCollect(
     col_pipeline_candidates,
     YourListzName.'Pipleline Candidates'
    )

     

    Also how many items are in your list? If more than 500 and less than 2000, you can set the limit up to 2000 in Advanced Settings.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • morall Profile Picture
    Microsoft Employee on at

    It is an entity.

     

    I'm confused by your syntax. When I copied/pasted it, I got an error. 

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Thanks @morall ,

    That was the bit you omitted in your original post - I am a SharePoint user, but if you add your list name, you should be able to do a collection. Also the comment on the number of records is relevant.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • morall Profile Picture
    Microsoft Employee on at

    Hey Warren,

     

    I need to go learn a bit more about collections 🙂

     

    Also, when I am dealing with delegation, I saw the ability to change the number of records. Is there a way to ensure it pulls records by a parameter? Ie - 500 records determined by a column, something similar to Sort(data_source, 'created on', descending) vs pulling 500 random records?

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @morall ,

    The 500 (you can increase it to 2000) will pull the first 500 records.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @morall ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard