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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Challenging flow to be...
Power Automate
Answered

Challenging flow to be streamlined: send email with attachment from list item on date listed in item column

(0) ShareShare
ReportReport
Posted on by 34

Hi Community,

 

So I have an existing flow that does the following, and it needs to be streamlined according to an alert from MS indicating "Your flow has used more than 80% of its content throughput limit in the past 24 hours. The performance is currently not impacted as it is below limits. But if the usage grows, further actions may be throttled or slowed down. Content throughput used: 2.17GB, content throughput transition limit: 2.5GB."

 

1. If today=To HR-3, the flow will send an email to a certain email address.

2. The email will contain "attachment" highlighted in red below.

3. (fact statement) All the titles of the attachments start with the "Candidate Name" column below.

eddiecheng_0-1711967514272.png

eddiecheng_1-1711967912349.png

 

My flow looks like this and it works fine now. Could you please review and help streamline my flow? Thank you very much!

eddiecheng_2-1711967996272.png

eddiecheng_4-1711968142885.png

eddiecheng_6-1711968236306.png

eddiecheng_7-1711968334030.png

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @eddiecheng It's best practice to filter the list of items first before you loop through them. Currently, the Get Items action in your flow isn't using a filter query. If there is a way you can reduce the overall number of items returned with this action—I'd highly recommend you do that with a filter query.

     

    Instead of looping through all items in your SP list and running a condition check to see if the To HR-3 date matches today, you should use a ODATA filter query to filter those items first. I would recommend creating a brand new flow so that you can follow along and run tests to better understand the flow. 

     

    Convert Time Zone

    Whenever you are using dates and times in your flow—it's best practice to use a Convert Time Zone action. In the base time field, insert the utcNow() expression.

    Source Time Zone: Coordinated Universal Time

    Destination Time Zone: Local Time Zone

    Format String: Round Trip

    creativeopinion_0-1711984858179.png

     

    Get Items

    You will need to use the internal column name of your To HR-3 column. Keep in mind that the internal column name may not always match the name displayed in your Sharepoint list. If you aren't sure how to get the Internal Column name, you can refer to this section of one of my YT Tutorials.

    creativeopinion_4-1711985391859.png

    In between the single quotes, you'll need to insert the date from the Convert Time Zone action. However, you'll need to format the date. Use the formatDateTime() expression.

    creativeopinion_5-1711985444738.png

    Click on the Dynamic Content tab and insert the converted time output. 

     

    creativeopinion_7-1711985492724.png

    Add a comma and single quote.s Between the single quotes enter a date time pattern. In your case use: 

    yyyy-MM-dd

    creativeopinion_8-1711985509648.png

    creativeopinion_9-1711985524970.png

    Return a Count

    Whenever I use a Filter Query in a Get Items action, I always like to return the count of items returned in a Compose action. This is helpful when building a flow and can also be used to troubleshoot your flow.

    Insert a Compose action. Add an Expression. Use the length() function.

    creativeopinion_2-1711985123421.png

     

    Select the Dynamic content tab and insert the value dynamic content from the Get Items action into the length() function.

    creativeopinion_3-1711985153884.png

     

    Run a test. Review the output of the Compose action to ensure that the number of items returned is what you are expecting. 

    creativeopinion_10-1711985582788.png

     

    Condition Check

    Add a Condition action to your flow. If items have returned (aka there is number stored in the Compose action—that is not equal to 0), add the rest of your actions to the Yes branch. If not, do nothing.

    creativeopinion_11-1711986353669.png

     

     

    ... more to come

     

    In the meantime you might be interested in these tutorials:

     

    How to Send a SINGLE EMAIL ✉️ with multiple SharePoint list items | Build THIS Power Automate Flow

     

    IN THIS VIDEO:

     How to send multiple list items in a single email with a Power Automate Flow

     How to create a dynamic date range

     How to use the Convert Time Zone action

     How to use a Filter Query in the Get Items action

    How to count number of items in an array

     How to use the Select action to extract a users display name and email address

     How to create a unique list of email addresses

     How to use the Create HTML Table action

     How to customize the HTML Table with CSS styles

    How to use the Send an email (V2) action

    How to use the Append to String Variable action

    How to create a custom list of items for an email

    How to use the Send an email (V2) action

    How to display singular or plural text based on the number of items returned

     

    ---

     

    Send Emails Based on a 📆 Date Column in SharePoint with Microsoft Power Automate

    In this Microsoft Power Automate tutorial, I’ll show you how to build a flow that will send a Happy Birthday email to a user based on a date column in a SharePoint list. The SharePoint list also contains a column with a Manager’s name which we’ll use to send a three-day and day of reminder to the user’s manager.

     

    This automation will use the Filter Array action to filter out all SharePoint list items where the user’s birthday is today or in three days. This flow can apply to a variety of scenarios such as:

     

    📅 Student Birthdays

    📅 Project Due Dates

    📅 Contract/Membership Renewals

    📅 License Expirations

    📅 Client Anniversaries


    IN THIS VIDEO:

    How to Send an Email based on a Date Column in SharePoint

    Using the Recurrence Trigger in Power Automate

    How to Use the Filter Array Action with multiple conditions

    How to Get Dynamic Content from a Filter Array Action

    How to Get a Date Three Days from Today

    How to Create a Dynamic Date Based on utcNow()

    How to Return a Count of Items

    How to initialize and set a variable

    How to use the Send an Email (V2) action

    How to send test emails

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    In addition to @creativeopinion  great response, you can also use an http action, explicitly select required columns and add a header:
    {
        "Accept": "application/json;odata=nometadata" 
    }

    DJ_Jamba_0-1711993599731.png

     

    which will eliminate all of the internal columns and reduce the dataset right down

  • Verified answer
    eddiecheng Profile Picture
    34 on at

    @creativeopinion Thank you soooooo much! It works perfectly fine and real fast! @DJ_Jamba Thank you, too, for the comment!!

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard