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 / Collection in Power Ap...
Power Apps
Answered

Collection in Power App isn't being filled due to syntax error?

(0) ShareShare
ReportReport
Posted on by 427

Hey all,

 

I think what I'm trying to do is relatively simple but so far it's not working sadly. I have the following Sharepoint List with these 2 columns that I would like to have added to a collection in my Power App:

DJanssen_0-1700567404313.png

In my Power App I have the following formula on my OnStart property:

DJanssen_1-1700567460043.png

 

ClearCollect(DocumentNumberCollection, ShowColumns('Authorization Matrix', "DocReference", "SequentialNumber"));

 

This is the only way I won't get errors. However, my collection remains empty sadly:

DJanssen_0-1700567779295.png

 

 

From the examples online I tried it without the single quotes:

DJanssen_2-1700567543466.png

But then it complains that "Name isn't valid. 'AuthorizationMatrix' isn't recognized"
I tried adding the spaces:

DJanssen_3-1700567610330.png

Then it will complain about that DocumentNumberCollection isn't recognized and another error on the first argument of ShowColumns. 

 

What am I doing wrong?

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @DJanssen ,

     

    Have you clicked the 'run onstart' option?

    vxiaochenmsft_0-1700621732212.png

     

    Best Regards,

    Wearsky

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @DJanssen - the SharePoint customized form experience works differently than in app studio. Once your form is initialised in the browser, the OnStart event is triggered once and will not trigger again unless you refresh the page in the browser.

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard