cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Update SharePoint Properties with predefined account

Does anyone know how I can update SharePoint Document properties with a predefined account?

 

If I use the action "Update SharePoint Document Properties" this is always executed in the context of the flow initiator.

 

Unfortunately this is a deadlock in my case, since I would like to update the document properties of a document which was approved and set to readonly for the flow initiator.

 

I'd like to avoid having to set permissions to contribute just for updating the properties.

4 REPLIES 4
Highlighted
Advocate IV
Advocate IV

Hi @MarcoLotscherNC ,

 

It sounds like the Flow is triggerd via PowerApps, a Flow-Button or from out of a SharePoint-List.

Try to use a recurrence or automatic trigger instead. 

Then the action will be processed with the unerlaying account.

 

The recurrence trigger can work as a timer job (every day, hour, month,...).

Then you select all documents that fit your requirements and move them.

 

I hope, i could have helped you. If so, it would be nice if you mark this post as a solution.

 

Best regards

Stefan

 

 

 

Highlighted
Dual Super User III
Dual Super User III

Hey @MarcoLotscherNC 

 

If the Flow is manually triggered, you can configure the connection for the particular action/ trigger for run only users. You can provide the connection of the owner of the flow for all these actions and everytime the flow is run, it will use those connections. If it is triggered from PowerApps, there isn't really a way you can configure that. 

 

If you can share more details, we might be able to assist you better. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted

You are right. In my case it's triggered by PowerApps. The connection on the activity which updates the property is set to a service account. But if the flow is run it acts as the initiator.


Highlighted

Hey @MarcoLotscherNC 

 

Yes. So when it is from a powerapps control, and the powerapps is assigned to a user (with a user role or co owner), it will alwasy use the user's connections for all the actions on the flow. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,940)