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/'
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.
If I open file explorer, I can see the file in it.
But I can't see it in the create menu.
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/
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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
6 | |
5 | |
3 | |
2 | |
2 |