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 / Building a flow that l...
Power Automate
Unanswered

Building a flow that logs number of email on either sharepoint or excel.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have the below Flow which emails when a certificate is going to expire within 30 days, however I would like it to log the number of emails sent. I assume this will be an initialize variable however as this can only "The operation 'Initialize variable' can only be used at top level." I'm a bit stuck on how I would update the spreadsheet or even the sharepoint list when an email is sent. Please could you help 

Email 1.PNGEmail 2.PNG

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    If you want to log the number of emails sent against each list record then you need to create a custom column in SharePoint as numeric. From the Get Items you can retrieve the current value. After Send email action step you can use an update list item increment the numeric value by adding 1 to keep the count.

     

    Thanks

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Please check the following configuration and see if it helps:

    121.PNG122.PNG

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply, how would I specify the field to increment the value?  

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    I'm afraid which user you responded to in this post, @abm or me?

    Please use @username to indicate which user your reply is to. This will help us continue to track this issue and provide you with appropriate methods.

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard