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

Notifications

Announcements

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:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    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,679 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard