web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow running on news p...
Power Automate
Answered

Flow running on news posts changes status of post from posted to draft

(0) ShareShare
ReportReport
Posted on by 35

Similar to other questions about triggering a flow when a column values changes, rather than every time an item is modified but a little different.

My flow sends an email when a news post is published ie promoted state goes from 1 to 2. To prevent another email being sent when a post is edited after publishing, the flow also changes the value of the "email sent" field to yes. Since that change puts the post back into draft mode, the flow also updates the promoted state field to = 2.

The problem is that even though the promoted state = 2, the post is still put into draft mode and needs to be reposted. It looks like no matter what I do, any change to any field while not necessarily firing the flow, will be read as a change and put the post into draft status.

Any ideas on how to workaround this?

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @webbrewers,

     

    You could create a condition after the trigger, if the status equal to 1, do the following steps. If not, it equals to 2, do nothing.

    For example:Annotation 2020-03-05 164533.png

    Or you could set the trigger condition to make the trigger be fired just when the status equals to 2, there is a video about how to set it:

    https://www.youtube.com/watch?v=j-gP-E6CCE4

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • webbrewers Profile Picture
    35 on at

    Thanks - maybe I wasn't clear. I already have a condition checking the status so future edits don't send another email. The last actions update 2 fields - and one is to update the status to "2" ie repost the news. That updates the field but because Msft didn't think through the news function properly, that change sets status as "2" but also puts the post back into draft mode. Is there an action that reposts news that works properly? Obviously as in all the other questions about this. if we could do something based on a column changing rather than ANY change, this wouldn't be an issue. But we can't as far as I know. Any change triggers the flow.

    Here are screenshots:

    Untitled.png

    Untitled.png

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @webbrewers,

     

    Thank you for your response, so you want the Flow only trigger when the status column changed in the SharePoint, right?

    There is a blog to introduce how to Check for a Change in a SharePoint List Column Value, hope it could help you:

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Check-for-a-Change-in-a-SharePoint-List-Column-Value/ba-p/241347

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard