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 / Sharepoint list retrie...
Power Apps
Unanswered

Sharepoint list retrieve people as default value from previous row

(2) ShareShare
ReportReport
Posted on by 16

Hi,
I am trying to use a Sharepoint list as a meeting protocol. A new entry is to be created for each agenda item. The moderator of the meeting should not always have to re-enter all participants. It would therefore be useful if the participants of the last entry were used as the default value for new entries. I have already tried it with a power app form, but I can't get any further. Any help is appreciated!

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @ML_1982,

     

    Do you save the selected participants in a collection using the ClearCollect() method then use them as defaults when setting up a new entry?


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

  • ML_1982 Profile Picture
    16 on at

    Hi Keith,
    ClearCollect() has actually got me a bit further now. I actually didn't know the method before. In connection with the default properties of the form field, however, I still seem to be using it incorrectly. The error is saying: The expression was intended to filter the 'Meeting Minutes CMS' table based on the last ID value and then collect the 'Participants' column into the 'colPart' collection. However, the error indicates that a behavior function (ClearCollect) is being used in a non-behavior property, which is not allowed. I guess it's obvious that I'm a total newbie. 

    Thanks in advance for your help.

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    You're welcome. We all started somewhere, sounds like you're learning a lot 🙂

     

    Can you send screenshots of the code and where you're seeing the error message please?


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

  • ML_1982 Profile Picture
    16 on at

    ML_1982_0-1720515279778.png

    ML_1982_1-1720515332437.png

    Sure. I hope that explain enough. I assume that the problem is that I have placed the formula in the default field, but there is no trigger for creating the collection. But IDK.

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Thanks. So, I believe the error is showing because the code uses the ClearCollect() function to build a collection called colPart.

     

    However, we can actually simplify the code to just return the collection rather than save it as a new collection by doing the following:

    Filter('Meeting Minutes CMS', ID = Last('Meeting Minutes CMS').ID).Participants

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Connect with me online.

  • ML_1982 Profile Picture
    16 on at

    It no longer shows an error, but as soon as I publish it and return to the Sharepoint list and want to create a new entry with the form, the field is empty and no default value is set. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard