Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Create a Sharing Link to a File or Folder - Flow Sending Duplicate Emails

Like (0) ShareShare
ReportReport
Posted on 15 Jan 2025 16:58:44 by 84
I have created a new flow that will send two emails when the status of a record in a document library is change to Data Call.  The emails includes a sharing link to a document.  A user changed the status to Data Call yesterday and the expected emails went out perfectly.  Oddly, about an hour later, five more sets of both emails were sent out.  In the details pane for that record it statues "SharePoint shared this file" at the exact times the emails went out.  When I view the output of the Get Changes for an Item, it shows that the status field was changed but there is no record in the details pane showing that someone changed the status.  I turned the flow off to stop the continuous emails.  Later turned it back on and it sent another set of emails out and then it appear to be done.
 
I'm wondering if this is a case of a continuously running flow that would benefit by entering the formula in the settings for When an Item is Created or Modified to prevent the flow from running when SharePoint changes a record.  Any help is greatly appreciated. 
 
@not(equals(triggerbody()?['Editor']?['Email'],'sharepoint@companyname.com'))
 
 
 
 
  • muggs4477 Profile Picture
    muggs4477 84 on 16 Jan 2025 at 00:08:07
    Create a Sharing Link to a File or Folder - Flow Sending Duplicate Emails
    My apologies, you're correct.  I forgot to include the condition.  See below. 
     
     
    And the configuration of the Get Changes is below. 
     
     
    Thank you regarding the comment regarding the email address.  Appreciate it.  Oversight. 
     
  • David_MA Profile Picture
    David_MA 8,364 on 15 Jan 2025 at 18:00:10
    Create a Sharing Link to a File or Folder - Flow Sending Duplicate Emails
    Yes, a trigger condition will help in preventing the flow from running again. If you do not have one in your current flow, any time the item is updated in SharePoint, your flow is going to trigger. Based on the fact that you're getting duplicate e-mails, it would seem like either your existing trigger conditions are not valid, or you do not have any. 
     
    Also, in your flow, I see you get changes for an item or file. I don't see any condition in your flow to check if the field you want to check has been added. Although, the image you shared does not seem to be your complete flow. Please show your condition and also show how you have configured the get changes action.
     
    If the e-mail address in your post is real, edit your post and make it more generic (e.g., sharepoint@domain.com). It will help avoid potential spam.

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard
Loading started
Loading complete