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 / Power Automate Creatin...
Power Automate
Answered

Power Automate Creating Duplicate Posts

(0) ShareShare
ReportReport
Posted on by 101

I have a power automate built that is working, BUT it is producing as many posts as there are contracts on the excel sheet that expire that date and I only want it to produce one post. Example - if there are 4 contracts that expire that day, then it does 4 posts. If there are 2 contracts that expire that day, then it does 2 posts. All with the same table. Do you know how to make it so only one message post?

 

Please see images in the attachment. 

 

 
 

 

 

 

 

PA2.JPG
PA1.JPG
result.JPG
Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @ncotela23 ,

     

    You are running a loop, checking the Date for each post separately.

    It sends a post for each item in the row.

    What you need to do is add a filter after your List rows to filter the ones that need (based on Agreement Date)

    Then send a single post to Teams. 

     

  • ncotela23 Profile Picture
    101 on at

    Hi @SudeepGhatakNZ can you provide an example screenshot of the suggested update? Thanks so much!

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Okay, I will share a sample with you.

     

  • ncotela23 Profile Picture
    101 on at

    That would be great! Thanks.

  • ncotela23 Profile Picture
    101 on at

    @SudeepGhatakNZ Do you mean add a filter in the List Rows step as I have already or another step right after the list rows?

     

    ncotela23_0-1686258255277.png

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @ncotela23 ,

     

    This is how I would tackle it.

    SudeepGhatakNZ_0-1686266295662.png

     

  • ncotela23 Profile Picture
    101 on at

    So I added that, but now it creates even more posts than previous. I am also wondering why I need to add the filter array step, when I already had a filter in the List Rows Step - see image below and the equation I used. 

     

    formatDateTime(addDays(utcNow(),1), 'yyyy-MM-dd')

     

    ncotela23_0-1686342092582.png

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    You don't need the filter if you have applied oDATA filter in Get Items

    Why do you have the Loop? Is that need?

     

     

  • ncotela23 Profile Picture
    101 on at

    @SudeepGhatakNZ can you provide me a screenshot of what you are wanting me to do? I am not understanding where the loop is. I removed the filter from the OData filter and now it generates multiple posts AND it pulls all expiration dates in. 

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    I would like know the purpose of the "Apply to each" construct.

    Are you looking to send an email to a specific user for each row individually, or do you prefer sending a single email to one person containing all the records?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard