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 / creating a collection ...
Power Apps
Unanswered

creating a collection based on multiple status columns of SharePoint list and send that in an email

(0) ShareShare
ReportReport
Posted on by 146

Hi

I have a Canvas app with a SharePoint list which has multiple columns of Statuses corresponding to each department. For example 'Status of IT' , 'Status of HR' etc. all of these columns are choice based and have tow values either Pending or Complete.

 

In power apps I have a gallery which shows all statuses. I want to add a button which should select all those department statuses which are 'Pending' and create a collection. This button will appear on each item of the gallery so the collection should be based on the selected item. 

 

I want to send the email to the managers where the status is Pending. I want to use the collection which is created above as subject.

 

any hint

regards

 

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Perhaps something like this to create the desired collection?:

    If(
     ThisItem.'Status of IT'.Value = "Pending",
     Collect(colStatuses, {Desc: "IT Pending"}),
     ThisItem.'Status of HR'.Value = "Pending",
     Collect(colStatuses, {Desc: "HR Pending"}),
     // and so on to test all of the columns
    )
    // to create a collection with rows corresponding to columns with "Pending" value

    What do you think?

    Bryan

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard