Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Create a SP List Item for each selected User

(0) ShareShare
ReportReport
Posted on by 302
Currently creating a recognition platform and have a multiple select directory drop box. 

Is it possible for each selected user to have a list item created for them?

I know i'd throw it in a for each loop but want to make sure if even possible
Categories:
  • timl Profile Picture
    34,933 Super User 2025 Season 1 on at
    Create a SP List Item for each selected User
    Thanks  honganhuynh1 - I'm glad that solved the issue.
  • honganhuynh1 Profile Picture
    302 on at
    Create a SP List Item for each selected User
    ForAll(
        DataCardValue15.SelectedItems,
        Patch(
            'BeNascentia Pending',
            Defaults('BeNascentia Pending'),
            {
                To: ThisRecord
        })
    )

    Did the trick!
  • honganhuynh1 Profile Picture
    302 on at
    Create a SP List Item for each selected User
    The column name is To 

    So should it be To:To?
  • timl Profile Picture
    34,933 Super User 2025 Season 1 on at
    Create a SP List Item for each selected User
    Hi honganhuynh1 
     
    You should just be able to specify the column name in the dropdown rather than DataCardValue15.Selected.
     
    So for example if the column name is FullName, the syntax would look like this:
     
    ForAll(
        DataCardValue15.SelectedItems,
        Patch(
            'BeNascentia Pending',
            Defaults('BeNascentia Pending'),
            {
                To:FullName
            }
        )
    )
     
  • honganhuynh1 Profile Picture
    302 on at
    Create a SP List Item for each selected User
    @timl,

    That did help create multiple list items but it put the same person for both list items.
     
    ForAll(
        DataCardValue15.SelectedItems,
        Patch(
            'BeNascentia Pending',
            Defaults('BeNascentia Pending'),
            {
                To:DataCardValue15.Selected
            }
        )
    )
  • Suggested answer
    timl Profile Picture
    34,933 Super User 2025 Season 1 on at
    Create a SP List Item for each selected User
    Hi honganhuynh1 
     
    Yes, this would be possible by calling Patch from within a ForAll.
     
    The formula would look something like this:
     
    ForAll(
        YourDropdownBox.SelectedItems,
        Patch(
            YourDataSource,
            Defaults(YourDataSource),
            {
                Column1:DropdownBoxColumnName
            }
        )
    )
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard