web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / automatically export S...
Power Automate
Unanswered

automatically export Sharepoint list data for data inputed on that day

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have a flow which starts from a form then goes into a Sharepoint list

 

Screenshot 2022-12-15 at 08.50.21.png

 

Screenshot 2022-12-15 at 08.51.52.png

 

 

what I want to do next is: 

 

  • Each day at 9:30am, export list of all children who have been reported as absent that day
  • Send list of those children absent to a staff member but want it to be a different staff member for each year 

 

Is this possible? 

Categories:
I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @AB21 ,

     

    I have created sample for you.

     

    1. In Power Automate select icon of new flow and then select Scheduled Cloud Flow Trigger.

    Amit_Sharma_0-1671350283585.png

     

    2. Then use Get Items (Get items Students) Action and apply Filter on Student List for Get Only Today Record.

    Amit_Sharma_1-1671352440127.pngAmit_Sharma_2-1671352472825.png

     

     

    formatDateTime(utcNow(),'MM-dd-yyyy')

     

     

     

    3. Then use Get Items (Get items Staff Member) Action For getting all the staff member.

    Amit_Sharma_3-1671352904733.png

     

    4. Then use One Compose (Table CSS) Action and Enter CSS Code for HTML Table.

     

    Amit_Sharma_4-1671353042238.png

     

     

    <style>
    table {
     border: 1px solid #1C6EA4;
     background-color: #EEEEEE;
     width: 100%;
     text-align: left;
     border-collapse: collapse;
    }
    table td, table th {
     border: 1px solid #AAAAAA;
     padding: 3px 2px;
    }
    table tbody td {
     font-size: 13px;
    }
    table thead {
     background: #1C6EA4;
     border-bottom: 2px solid #444444;
    }
    table thead th {
     font-size: 15px;
     font-weight: bold;
     color: #FFFFFF;
     border-left: 2px solid #D0E4F5;
    }
    table thead th:first-child {
     border-left: none;
    }
    </style>

     

     

     

    5. After That Use One Apply to each Action.

    Amit_Sharma_5-1671353162686.png

     

    6. Then use Filter Array Action Inside Apply To each.

    Amit_Sharma_6-1671353218433.png

    Amit_Sharma_7-1671353263794.pngAmit_Sharma_8-1671353311358.png

     

    7. Then Use Create Html Table Action.

    Amit_Sharma_9-1671353424460.pngAmit_Sharma_10-1671353512279.png

     

     

    item()?['ParentName']

     

     

    Amit_Sharma_11-1671353605677.png

     

     

    item()?['ParentEmail']

     

     

     

    Amit_Sharma_12-1671353683734.png

     

     

    item()?['StudentName']

     

     

     

    Amit_Sharma_13-1671353754771.png

     

     

    item()?['StudentYear']

     

     

     
     

    t1.png

     

     

    formatDateTime(item()?['Created'],'dd-MM-yyyyTHH:mm')

     

     

     

    - After That Use Send an email (v2) Action.

    t2.pngt3.png

    t4.png

     

    Complete Flow

    t5.pngt6.png

     

    Student List

    t8.pngt9.png

     

    Staff member List

    s10.png

    --------------------------------------------------------------------------

    If I have answered your question, please mark post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @AB21 

    Output of flow

    Amit_Sharma_0-1671355232921.png

     

    With CSS on mail

     

    Amit_Sharma_1-1671355304583.png

     

    Best Regards, 

     

  • AB21 Profile Picture
    on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @Amit_Sharma 

     

    Thanks for this, I am struggling on the first bit I dont get the drop downs like your get items connector: 

     

    Screenshot 2023-01-03 at 11.02.21.png

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @AB21 

    IF You want to drop down feature you can enable Experimental Feature from power automate Settings.

     

    Otherwise, you can do like this:

     

    Amit_Sharma_1-1672747370049.png

    Note: don't forget to use single quotes outside of formatdatetime expression in filter query.

     

    Best regards,

     

  • AB21 Profile Picture
    on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @Amit_Sharma 

     

    Thank you! your help has been amazing perfect layout of instructions. I am just waiting for the schedule time which is half 12 to hit. On the students list the date did you add that for a reason? 

  • AB21 Profile Picture
    on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @Amit_Sharma 

     

    I have got the email however no information! 

     

    Screenshot 2023-01-06 at 11.08.39.png

     

    Is this due to no data being new from now or will this bring up data that has been inputted today as in prior to running this flow? 

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi @AB21 

    will this bring up data that has been inputted today as in prior to running this flow.

  • AB21 Profile Picture
    on at
    Re: automatically export Sharepoint list data for data inputed on that day

    Hi, so as there is new data today when the schedule is due then data should appear in emails?

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard