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 Automate
Unanswered

Incorrect Trigger

(0) ShareShare
ReportReport
Posted on by 65

Hello everyone,

I'm building a Cloud Flow that whenever I add a file to an specific OneDrive folder I must receive an Email with an Excel File with a list of informations about those documents and I've already figured how to do this part. Now, for this flow I'm using the "When a file is created" OneDrive for Business Trigger. The thing is when I add more than one document, I receive lots of emails. Let's say, if i add 300 documents on the folder I will receive 300 emails. I need this corrected because that folder usually gets added tons of documents in one go. Is there a trigger that runs flows only when that specific folder is updated? I'm kinda new to Automate and I feel this a fairly simple question.

Categories:
I have the same question (0)
  • mattias1172 Profile Picture
    385 on at
    Re: Incorrect Trigger

    What exactly do you want the trigger to be against the folder?

     

    The trigger "when a file is created" will fire anytime a file is added to that folder. If you add 300 files, you'll get 300 triggers as you've seen. 

     

    Are you trying to get a single email after all xxx files are added and send an email with the Excel document detailing all those xxx files? 

  • Calheiro Profile Picture
    65 on at
    Re: Incorrect Trigger

    "Are you trying to get a single email after all xxx files are added and send an email with the Excel document detailing all those xxx files?" - Yes, exactly.

  • mattias1172 Profile Picture
    385 on at
    Re: Incorrect Trigger

    Does this dump of files happen on a routine/scheduled basis? Do they get cleared from this folder afterwards? 

  • Calheiro Profile Picture
    65 on at
    Re: Incorrect Trigger

    They do not happen on a scheduled basis, but they are cleared from that folder afterwards.

  • mattias1172 Profile Picture
    385 on at
    Re: Incorrect Trigger

    Is there any form of consistency for when the files get added? If not currently, is that something that could be done? 

     

    If so, one easier way to do this would be to use a scheduled trigger such as hourly, daily, or daily at certain times. When the scheduled time happens, it gets all files in the folder, gets their contents for each file, and appends a new row to an excel table. 

     

    A very rough example:

     

    mattias1172_0-1645203918305.png

     

    I don't know what information you are trying to get from the files, but you can just change the "Get File Content" action to what's needed. The "List files in folder" will pass both the file ID and file Path as dynamic content. 

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