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

Set or upload document template to a SharePoint document library

There's a hidden "forms" folder in each SharePoint document library. When you set a new template (via the modern experience) you can see the template being placed into this folder. I've updated the template via Windows Explorer (because it's still exposed via WebDav) and it works. I have also updated templates via Powershell - so I am assuming a simple file copy operation should do the trick. But no luck.

 

Is it possible to upload or set new templates in this folder via Flow? I've tried using the SharePoint File Copy operation, and the following is what I get:

 

 

{
  "status": 400,
  "message": "Failed to verify the existence of destination location at 'https://mytenant.sharepoint.com/MySite/TargetLibrary/Forms/' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.

 

 

If I use the https address (in above error message) in a browser, I can drag and drop DOCX files into the forms folder and they do appear in the Document Library's "New" menu as a template.

 

I have also tried the https address with and without the trailing "/":

 

'https://mytenant.sharepoint.com/MySite/TargetLibrary/Forms/'

 

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @BlueDoggie ,

 

This is probably difficult to achieve.

I did a test for you and this is the result for me:

1\ If I create a file in 'doucment library/Form' using flow, the file will be created . But I can't find the option in the 'create' menu.

vxiaochenmsft_0-1643264128213.png

If I open file explorer, I can see the file in it.

vxiaochenmsft_1-1643264359789.png

 

But I can't see it in the create menu.

vxiaochenmsft_2-1643264404213.png

 

2\ If I use copy a template from one document library form folder to another document library form folder , the flow will failed.

 

So , 2 known ways to create templates

1/ 

vxiaochenmsft_3-1643264540730.png

 

2\ Drag file to the sharepoint form folder

 

Maybe there is Sharepoint api to do this, but unfortunately I didn't find the relevant information.

 

Best Regards,

Wearsky

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,978)