cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MiSchroe
Level: Powered On

Create a SharePoint file as another user

Hi,

 

my flow is triggered by a new answer in Forms. Based on the answer a new file will be created in a SharePoint library. Everything works fine, but the "last modified by" field of the new file shows my name instead of the user who started the flow. I guess this is because my credentials are stored with the workflow.

 

Is it possible to set the user for creating the file? There isn't any option in the Create File action.

 

I use the flow with SharePoint Online.

 

Regards,

 

Michael

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Create a SharePoint file as another user

@MiSchroe- Flow does not natively support updating the SharePoint Created By column.  However, I believe you can do so by calling the SharePoint REST API from Flow.

 

Here is a blog post from Pieter Veenstra that demonstrates this technique.

 

If this solves your problem, please mark you post as Solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

MiSchroe
Level: Powered On

Re: Create a SharePoint file as another user

Scott,

 

thank you for your quick reply. This would work with a list but not with a file library.

 

Regards,

 

Michael

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Create a SharePoint file as another user

@MiSchroe- Flow does not natively support updating the SharePoint Created By column.  However, I believe you can do so by calling the SharePoint REST API from Flow.

 

Here is a blog post from Pieter Veenstra that demonstrates this technique.

 

If this solves your problem, please mark you post as Solved.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

MiSchroe
Level: Powered On

Re: Create a SharePoint file as another user

Scott,

 

thank you for your quick reply. This would work with a list but not with a file library.

 

Regards,

 

Michael

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 307 members 3,533 guests
Please welcome our newest community members: