cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nermineyoussef
New Member

Microsoft flow when having a trigger " when item is created or modified"

Hi,

 

Please i need your help 🙂 Now i'm trying to create a WF using microsoft flow

 

Target of Flow : when a file is created or midified in a certain Document Library after a person approves the documnet the status of the file should be approved in order to be visable to all other users

Connectors used: Sharepoint 365 , Approvals 

here i face two problems:

 

1- Microsoft flow doesn't allow in updating the columns build by sharepoint i mean i cant use the Update file property action to make it from pending to approved. so i created my own columns having three options pending approved rejected but when it working it modified my column from to approved but that didn't mean thats it's visable to other people itsstill pending in the Sharepoint column

2- Once i update any file property during the workflow. Microsoft Flows dirctly consider this a modification and rerun the flow again

how can i fix these issues

 

I though about a workarround to add a trigger like as an approval variable and go to the sharepoint designet and asking once this variable is now YEs update content approval to approved .

 

But this also is not working i really need to find a way to solve this

 

Is there any specific settings in the library that should be done?

 

Hope anyone can help me to get rid of this wierd loop and fix the sharepoint desigenr issue or even hopfully there is a way to be done all through the Microsoft flow 

 

 

 

9 REPLIES 9
v-yamao-msft
Community Support
Community Support

Hi nermineyoussef,

 

Please take this blog for a reference:
https://flow.microsoft.com/en-us/blog/support-for-sharepoint-document-library-properties/

 

I assume that your flow is using the trigger “SharePoint – When a file is created or modified(properties only)”.


And you have a Choice column in the library with three choices “Approve”, “Rejected”, “Pending”.


For problem1, we could update the status of the file to “Approve”, however, after it updated, it is not possible to use flow to make it visible to other people.


About this issue, I have seen similar request at Flow Ideas Forum, please consider to vote the idea at here, I will help collect and report it from my side.

https://powerusers.microsoft.com/t5/Flow-Ideas/Allow-to-check-in-check-out-and-publish-files-in-a-Sh...

 

For problem2, please consider to add another condition to filter the status. If the status of the file is Approve, do nothing. If no, followed by the actions you want.

 

A flow configuration for your reference:

3.PNG

 

Please try it on your side.

 

Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nermineyoussef
New Member

Am still having a problem when i add action of update file property this is triggered in the flow as modification so it runs once more how can i solve thisss

I have the same issue like #2 - Flow keeps running. Now it's failing because there were too many requests... and it created too many versions of the record in my list.

I'm only copying an existing value from 1 field in the item to another field in the same item.

It looks like the flow then thinks i'm making another update and keeps going and i have not got a condition to use "Do until..."

Any thoughts?

 

FlowLoop.png

 

 

Has there been any update for this issue?

I also run an update "current" item for the item the workflow has started on.

 

If a Column Changes i need it to go to another secondary List and get some values.

Pull those Values back into my primary list again and then update the Primary list with those values.

 

Howver upon updating the primary list it just continually loops...

 

I must be missing something really obvious here but cant seem to work out how to stop it looping. Surely Micrsoft have not missed this as a bug.

maverick17
Advocate IV
Advocate IV

I’m running into the same issue with infinite loops during list items updates. Has anyone figured out a workaround?

I did get a resolution for this using Variables, so the workflow will run once when they item is added or modified which then uses an update item. a 2nd workflow will start but due to a variable outcome it then stops.

 

So it will always run twice is the best i could come up with.

@StuartSSTech How is your variable determined? Will your process allow for continuous editing of a record? If you could elaborate a little more it would be very helpful!

 

Thanks!

 

Well this isnt that easy to explain if im honest.

 

I have 2 Columns, one is the primary Choice menu (column 1) of options which change when a user changes role. Flow goes to another list and gets what forms are required for that role and updates the Primary list with these yes/no values for each role.

 

So i needed to only run when the job title had changed but to do this i had to create Column 2 a single line of text which is also set during the update list item to the same value as the job role.

 

So the Workflow hits a condition and will only run the update info when the Hidden Column (Column2) is not equal to the job title (column 1)

 

So the workflow will run both columns are not the same so it will run the update. It will run the loop sadly but will hit the condition and becuase both values are the same the workflow will end at the condition. So the workflow only ever runs twice until the item is editted again and it checks the value of column 1 and 2 are the same or not.

 

Hope that made sense...

 

 

neeraj_bharati
Advocate II
Advocate II

I am having the similar issue with trigger "when a file is created or modified (properties only)". It keeps on firing even when there is no change in the file properties or content. Any help is much appreciated. 

Helpful resources

Announcements

Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft MVP Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show!      Show schedule in this episode:    0:00 Cold Open 00:30 Show Intro 01:02 Dian Taylor Interview 18:03 Blogs & Articles 26:55 Outro & Bloopers    Check out the blogs and articles featured in this week’s episode:    https://francomusso.com/create-a-drag-and-drop-experience-to-upload-case-attachments @crmbizcoach https://www.youtube.com/watch?v=G3522H834Ro​/  @pranavkhuranauk https://github.com/pnp/powerapps-designtoolkit/tree/main/materialdesign%20components @MMe2K​ https://2die4it.com/2023/03/27/populate-a-dynamic-microsoft-word-template-in-power-automate-flow/ @StefanS365 https://d365goddess.com/viva-sales-administrator-settings/ @D365Goddess https://marketplace.visualstudio.com/items?itemName=megel.mme2k-powerapps-helper#Visualize_Dataverse_Environments @MMe2K    Action requested:  Feel free to provide feedback on how we can make our community more inclusive and diverse.    This episode premiered live on our YouTube at 12pm PST on Thursday 30th March 2023.    Video series available at Power Platform Community YouTube channel.    Upcoming events:  Business Applications Launch – April 4th – Free and Virtual! M365 Conference - May 1-5th - Las Vegas Power Apps Developers Summit – May 19-20th - London European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas    Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community    If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.       

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren   David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Users online (3,319)