cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Get E-mail address of LockedbyUser

Hi,

I'm running a flow which updates certain file properties. The flow fails if the file is open by someone, the error message says something like "the file is locked by user". The flow works in a loop, so eventually when the user closes the file it updates the properties, however it can take a while. I want to send an HTTP request to SharePoint to get the LockedbyUser and send an E-mail to that person asking to close the file. Now the request I believe should look like this:

 

GET http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelat...

 

However I'm struggling with translating this into an E-mail address to use in the "To" field of the Send an E-mail action. Can anyone help with this part, please?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, in the end I managed to find the Parse JSON code to do this.

View solution in original post

2 REPLIES 2
Regular Visitor

Is this what you are looking for?  

PowerOutage_0-1611354792346.png

 

Yes, in the end I managed to find the Parse JSON code to do this.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (49,684)