Hi folks,
I have a sharepoint list including employee data from the AD like Name, Email etc.
Entries from this list get filtered in the PowerApp and shown in a PowerApp gallery. (E.g. Steven Miller; Chicago; Head of Marketing)
I want to create a button which fills a textbox with all email addresses from this pre-filtered gallery (to create some kind of topic specific mail distribution list)
The textbox is set to show a variable ('var1'), therefore I thought to store all email addresses as a long string into this variable.
I basically need a loop like the following one, but have no idea how the syntax in PowerApps would look like:
For each item in gallery
Var1 = Var1 + "; " + row.value
Is there an easy way to solve this?
Solved! Go to Solution.
Thank you, this hint basically led me to my solution. I got stuck searching for a solution using "ForAll", but this is not necessary.
I just save the gallery into a collection and display it via concat.
Button:
Clear(Collection1);; Collect(Collection1; Gallery1.AllItems)
Textfield:
Concat(Collection; 'Employee Name'.Email & "; ")
Thanks for the support.
Thank you, this hint basically led me to my solution. I got stuck searching for a solution using "ForAll", but this is not necessary.
I just save the gallery into a collection and display it via concat.
Button:
Clear(Collection1);; Collect(Collection1; Gallery1.AllItems)
Textfield:
Concat(Collection; 'Employee Name'.Email & "; ")
Thanks for the support.
User | Count |
---|---|
141 | |
135 | |
77 | |
75 | |
69 |
User | Count |
---|---|
223 | |
190 | |
66 | |
62 | |
55 |