web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set or upload document...
Power Automate
Unanswered

Set or upload document template to a SharePoint document library

(0) ShareShare
ReportReport
Posted on by

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/'

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    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

     

  • Cinzia Profile Picture
    2 on at
    Hi, did you find a solution? I need to upload several document templates using PowerAutomate and I'm facing the same problem; I can create the file in the "Forms" folder, but it doesn't appear in the "New" menu.
    If the file is already visible and you update the template, everything work just fine.
    It's also impossible to update the associated content type, and I need to set the content type for each template.
    I'd really appreciate some help.
    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard