Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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/'

 

  • Cinzia Profile Picture
    2 on at
    Re: Set or upload document template to a SharePoint document library
    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
  • v-xiaochen-msft Profile Picture
    on at
    Re: Set or upload document template to a SharePoint document library

    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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow