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 / Retrieve Email from Sh...
Power Apps
Answered

Retrieve Email from SharePoint list

(0) ShareShare
ReportReport
Posted on by 986

Hi everyone,
My scenario was as follows:
I had created a Registration Page for users who want to access my application which looks like:

Sidhant_02_0-1676978520989.png

 

So on Save, I am saving the details in the SharePoint List (named App Users) and along with it an email is sent to the new users notifying them that their account is created using SendEmailV2 connector and Office365 conector

Sidhant_02_1-1676978662137.png

 

But now I also want to notify the Administrator that a new user has registered in the application, for which I have added a record with Role: Administrator (the Role column in the SharePoint list is a Choice column)
SharePoint list Header:

Sidhant_02_2-1676978907970.png

 

 

Sidhant_02_4-1676978995618.png

 

Sidhant_02_3-1676978931124.png

 

So Lets say for the above record (named Silly is Administrator) and I want to send Email to users with Role: Administrator when new registers in the application so how to retrieve the email of the users (Role: Administrator) and send them the mail.

Sidhant_02_5-1676979161924.png

 

In the above image I am sending email to the new user registered by taking the email value from the text input field, similarly I want to send an email to users with Administrator role in SharePoint list. Is there any way to do it, if so please share the solution for it.

Regards,
Sidhant.
 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Sidhant_02 ,

     

    I made a sample for you.

    vxiaochenmsft_0-1677032386224.png

    vxiaochenmsft_1-1677032403307.png

    Concat(Filter(LIST307,Role.Value="Administrator"),Email,";")&";"&TextInput1.Text

     

    Best Regards,

    Wearsky

  • Sidhant_02 Profile Picture
    986 on at

    Thanks @v-xiaochen-msft for the response I will try this out. The textInput1.text is used for the User Email right in my case it would be TextInput1_1.Text and the Concat function should be passed as the first argument right?.
    Like This:

    Sidhant_02_0-1677047013471.png

    I was thinking of the same but I used Role = "Administrator" instead of Ro.e.Value and the remaining part was not given which includes ';' to separate out emails if there is more than 1.

    Got the output that I was looking for:

    Sidhant_02_1-1677049603632.png


    Thank you Wearsky for the solution.

  • Sidhant_02 Profile Picture
    986 on at

    I will mark it is as accepted, but before that I just some small queries that I wanted to ask:
    In the registration page I wanted to add some validations:
    Like for Password: Must contain 1 uppercase, 1 Lower case, special symbol if user does not enter as per the requirement a message should below the field, then for username if it already exists then please give another username this already exists
    I have already done for email part wherein if user A: Email: abc@gmail.com is already registered in the app and other user B tries to register with same then they cannot

    Sidhant_02_2-1677049885423.png


    Regards,
    Sidhant.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard