Skip to main content

Notifications

Power Automate - Building Flows
Answered

Get Attachments Is Sending All Documents Not Just the Document For That Record

Posted on by 71
Hello, In need of assistance.  I have a reminder flow that if the status doesn't change after three days, it sends a reminder to the Approver with the invoice.  However, it's sending a bunch of invoices from different records too.  I think I have something out of order but am not quite sure.  See attached images. 
 
Any help is greatly appreciated.
 
Slide3.PNG
  • muggs4477 Profile Picture
    muggs4477 71 on at
    Get Attachments Is Sending All Documents Not Just the Document For That Record
    David,
     
    That corrected the issue completely.  I can't thank you enough.  I learn something new every day. 
  • Suggested answer
    David_MA Profile Picture
    David_MA 7,541 on at
    Get Attachments Is Sending All Documents Not Just the Document For That Record
    Your flow is a little difficult to figure out since it looks like something has been left out in the images and is in three images. But it looks like you are getting the attachments related to the initial Get items action after the trigger. These are processed in an apply to each, and you are adding the data for the attachments into an array variable. Correct so far?
     
    If so and you are populating the attachments in the e-mail action, after the e-mail action you need to reset your array. Otherwise, you keep appending the attachments from all items to your array, which is what I think you are describing.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard