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 / SharePoint View - How ...
Power Automate
Unanswered

SharePoint View - How to show that a PA Flow is going to run?

(0) ShareShare
ReportReport
Posted on by

I need a way to show in the list view that a PA Flow is going to run.  (This is to prevent the user from editing the record and to know if there is a problem with the WF))

BACKGROUND

  • This is on a Classic SharePoint site.  
  • I am using Content Editor web parts to add CSS and JavaScript to my pages
  • Trigger Type: When list item is Created or Modified.
  • Stopping WF from triggering itself:  I created a list field called WFStop.  When the WF updates the triggering record it sets the WFStop field value to what the saved version number will be.  When the WF triggers itself the first thing it does is see if the WFStop and Version numbers are the same.  If yes, the WF terminates.

 

My thoughts on the solution.

  • In the list view I display both the WFStop and Version fields.
  • I have a multi-line rich text field: WFStatus set to: <div ID="WFStatus" >Checking...</div>

Use javascript? to check if WFStop = Version. 
True: Replace the text in WFStatus DIV with "Ready"
False: Replace the text in WFStatus DIV with "Pending"

 

How do I write the javascript (or other code) to accomplish this?

Samples are greatly appreciated!

 

 

 

 

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @CTFlorian I would try this, when the flow starts remove the permission of the item and when flow completes again inherit the permissions to the item. This way users won't be able to see the item in the list while flow is running and when the flow run is complete they should be able to see the item.

    But there is a limitation for unique permission, 5k is recommended but max of 50k. Not sure when you break inheritance SharePoint counts this as unique permission.

    If the number of items are less then this would save you a lot of time doing all the JavaScript and classic site stuff.

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • florianct Profile Picture
    on at

    Thanks. But the issue is not really while the WF is running, it's the lag between when the record is saved and the WF starts. That's why I asked about using JavaScript to check each row and do a replace of the WFStatus div. 

  • jinivthakkar Profile Picture
    4,187 on at

    @CTFlorian I found below similar posts, please try as suggested :

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/Delay-in-triggering-flow/td-p/153024

     

    https://powerusers.microsoft.com/t5/Building-Flows/Delay-on-triggering-flow/td-p/492425

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard