Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Send mail to adresses in a SharePoint list

(0) ShareShare
ReportReport
Posted on by 76

Hello everyone 🙂

 

Im trying to make a flow that reads a column in my SharePoint list and extracts the mails from this column (there are either mailadresses or empty fields).

 

I tried to use 'Select' but I always get the error that my column doesnt exist - I double checked the name in my SharePoint settings and its correct.

I also tried to create an array and append it to a string and I made the condition that the item should not be empty but then I get the error that I cant sent to 'Null'.

(I cant even try to filter so that I dont get mail adresses more than once)

 

Has someone another solution or can help me to fix my attempts?

 

Thanks 🙂

Ariini

  • Ariini Profile Picture
    76 on at
    Re: Send mail to adresses in a SharePoint list

    Hi @v-dezhili-msft 🙂

    It creates another aplly to each but this time for select

    But I tried it and it sends out the mails with the correct text - thank you so much!

     

    The only thing Im missing is that it sends the mail to a user multiple times if he/she is listed for more than one project.

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: Send mail to adresses in a SharePoint list

    Hi @Ariini ,

     

    Please try:

    vdezhilimsft_0-1679558451990.png

    vdezhilimsft_1-1679558463881.png

     

    Best Regards,

    Dezhi

     

  • Ariini Profile Picture
    76 on at
    Re: Send mail to adresses in a SharePoint list

    Hello @v-dezhili-msft  🙂

    I didnt use apply to each twice but it automatically added it in when I use the second getItem in my mail.

    Ariini_0-1679558031506.png

    The value 'Aktuelles_GJ' is from another SharePoint list and every time I use this Power Automate automatically adds the other apply to each

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: Send mail to adresses in a SharePoint list

    Hi @Ariini ,

     

    Could you please show your formula for send email action?
    Actually you don't need to use apply to each2.

     

    Best Regards,

    Dezhi

  • Ariini Profile Picture
    76 on at
    Re: Send mail to adresses in a SharePoint list

    Hi @v-dezhili-msft 🙂

    Well kind of - each row has the columns 1st,2nd and 3rd Counterpart.

    Each row is one project and it could happen that the 1st Counterpart of project nr 1 is as well a counterpart in project nr 200.

     

    I tried using your solution and it seems to work if the first entry has a mail address but it fails if there is none.

    So it seems like I got the part wrong where it skips the empty entries

    I get an error on the last part where the mail is sent

    Ariini_2-1679492746979.png

     

    Ariini_1-1679492724557.png

     

    Ariini_0-1679492679837.png

     

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: Send mail to adresses in a SharePoint list

    Hi @Ariini ,

     

    Sorry I don't quite understand your needs.
    Can you give me some examples?
    I did a test as per my understanding.
    In my scenario I want to send emails to the email addresses in the email email2 and email3 columns in each row, but I only need it once when an email address exists in both email email2 or email3 columns.

    vdezhilimsft_1-1679391487120.png

    vdezhilimsft_2-1679391520925.png

     

    vdezhilimsft_3-1679391554269.png

    vdezhilimsft_4-1679391572469.png

    vdezhilimsft_5-1679391603284.png

     

    vdezhilimsft_6-1679391620919.png

     

    Best Regards,

    Dezhi

     

     

  • Ariini Profile Picture
    76 on at
    Re: Send mail to adresses in a SharePoint list

    Hi @v-dezhili-msft 

    Yes if possible I have to send everyone a mail but not twice if they are listed in multiple entries/columns.

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: Send mail to adresses in a SharePoint list

    Hi @Ariini ,

     

    Do you need all emails in the 1st 2nd 3rd column?

     

    Best Regards,

    Dezhi

  • Ariini Profile Picture
    76 on at
    Re: Send mail to adresses in a SharePoint list

    Ariini_0-1679385613629.png

    It seems like I messed up at the start and the columns names are field_10, field_12 and _x0033_rdCounterpartEmail

    All of them are single lines of text

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at
    Re: Send mail to adresses in a SharePoint list

    Hi @Ariini ,

     

    May I know what your data source looks like.

     

    Best Regards,

    Dezhi

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,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow