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 Automate / extract data from Shar...
Power Automate
Unanswered

extract data from SharePoint list and send mail

(0) ShareShare
ReportReport
Posted on by 52

Hi All,

 

If the value in my variable matches the value in column "department" then it should extract values from other columns (appover1, approver2, approver3) of same row. After extraction i want to use these values to send mail to these approvers.

 

Here is screen shot of the SharePoint list

Hritikpatel317_1-1719406246465.png

 

Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Hritikpatel317  So what's the challenge you are facing in it? After condition you can use get item action and store each column value in a compose or variable which you can utilize later in your email action.

     

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @Hritikpatel317 !

     

    I have 2 methods or ways to do this.

     

    Method 1 (initialize a variable inside and then check condition):

    You can follow this flow. I have used a trigger "When an item is created" so that this flow will get automatically triggered whenever someone enters the 

    NathanAlvares24_0-1719411570364.png

     

    Expressions used:

    In Compose action (here known as Concatenate all emails)

     

     

    concat(outputs('Get_item')?['body/approver1'],';',outputs('Get_item')?['body/approver2'],';',outputs('Get_item')?['body/approver3'])

     

     

     

    NathanAlvares24_1-1719411656882.png

    Here I have specified the department in which it will get triggered only then send email.

     

    NathanAlvares24_0-1719411745746.png

    In the condition, it will check if that SharePoint Department value matches the Department variable initialized in the flow. Use the output from your compose and put it in the To section of email.

     

    Input:

    NathanAlvares24_4-1719412704124.png

     

    Output:

    NathanAlvares24_5-1719412742421.png

     

    Method 2 (use the trigger settings to only trigger this flow whenever an item is created to check the department column if it is equal to 'HR'):

    Flow:

    NathanAlvares24_1-1719412311865.png

    In the trigger I have done this so simulate this:

    NathanAlvares24_2-1719412539681.png

    NathanAlvares24_3-1719412591208.png

    Trigger Expression:

     

    @equals(triggerOutputs()?['body/Title'],'HR')

     

     

    Expressions used:

    In Compose action (here known as Concatenate all emails)

     

     

    concat(outputs('Get_item')?['body/approver1'],';',outputs('Get_item')?['body/approver2'],';',outputs('Get_item')?['body/approver3'])

     

     

     

    Use the output from your compose and put it in the To section of email.

     

    Input:

    NathanAlvares24_4-1719412704124.png

     

    Output:

    NathanAlvares24_5-1719412742421.png

     

    I hope this helps.

  • Hritikpatel317 Profile Picture
    52 on at

    Hi @NathanAlvares24 !

    Thank you for your solution, and sorry that i didn't explain the question properly actually i use both sharepoint list and sharepoint document library where i want to fetch the function(HR and IT column) data from my sharepoint document library to sharepoint list department(HR and IT column) data. And i use filter array function but it didn't give me output. Output column shows blank bracket[] like this, so what should i do to get the output.

    Thank you in advance....

    here are the ss of the SharePoint list and SharePoint document library

    SharePoint list:-Hritikpatel317_0-1719552091196.png

    document library:-Hritikpatel317_1-1719552584982.png

     

    Flow:-

    Hritikpatel317_2-1719553181024.png

    filter array output:-

    Hritikpatel317_3-1719553328073.png

     

     

     

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @Hritikpatel317 !

     

    NathanAlvares24_0-1719553921824.png

    As seen from your response, the one marked in red is your SharePoint list. But the other one that is marked in green is not a SharePoint document library, its a SharePoint list.

     

    So my questions are:

    1) Are both pics part of the same SharePoint list?

    2) If not 1st, is the one marked in red your first SharePoint list and the one marked in green is your second SharePoint list?

    3) If not 1st or 2nd, is it from a SharePoint document library where it has an excel file and then you want to extract the rows from that?

     

    Please note a SharePoint document Library is only where you see files stored. While a SharePoint list has columns of data.

    Example what a SharePoint document Library looks like:

    NathanAlvares24_1-1719554258940.png

     

    Example what a SharePoint list looks like:

    NathanAlvares24_2-1719554558333.png

     

     

    Please specify correctly because I do not see a SharePoint document library pic in your response.

     

    Please do correct and let me know. I will gladly assist.

  • Hritikpatel317 Profile Picture
    52 on at

    Hi @NathanAlvares24 ,

    thanks for the quick response,

    Following are the snapshots of my sharepoint

    1. Document library

    Hritikpatel317_0-1719561614845.png

     

     

    2. Sharepoint list

    Hritikpatel317_1-1719561655242.png

     

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard