Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6kOgmt/p7EMep5O7ibteUB
Power Automate - General Discussion
Unanswered

Update SharePoint template spreadsheet using Power Automate

Like (0) ShareShare
ReportReport
Posted on 8 Sep 2022 13:19:37 by 234

Hello lovely flowers, (are people who write flows called flowers?)

 

Can I use Power Automate to update a template document in a SharePoint document folder list of template documents?

 

  • I have a template spreadsheet for an event packing list.  It gives an event manager a list of products they could take to an event and asks them how many of each they will take (and then a whole  lot of other process too)
  • The spreadsheet exists as Template.xlsx in a subfolder of the Documents folder, hidden away out of sight of users, to stop them breaking the template
  • I have added this spreadsheet as Template to the [New] list for the Documents folder
  • Events managers can successfully create new packing lists from the [New] Template

My issue is the list of products changes all the time, so I need the template to update

  • I have successfully written a flow that takes a csv of new products, every day, and writes it in to Template.xlsx
  • But that only updates the spreadsheet called Template.xlsx
  • New documents made from the [New] Template list don't have the updated product list
  • I assume [New] makes a hidden Template somewhere, based on but not linked to my Template.xlsx, and uses that for new documents, not my Template.xlsx
  • I can update the [New] template from Template.xlsx manually.  But obviously I don't want to have to do that manually, every day!

My question is can I add steps to my flow that update the [New] Template with the revised Template.xlsx, each time it is revised?

 

Thank you for all your help

Guy

  • AWorley Profile Picture
    414 Super User 2024 Season 1 on 08 Sep 2022 at 16:00:12
    Re: Update SharePoint template spreadsheet using Power Automate

    I see; This likely isnt a major focus of the sharepoint connector. It sounds like a sharepoint webpart(or multiple) generates the document from sharepoint itself. Looking over the connector the only two possible leads would be the "Generate document using SharePoint Syntex (preview)" and "Send an HTTP request to SharePoint". 

    Everything else is tied directly to sharepoint's functionality as a file share or SP Lists. 

     

     

    Here is an article depicting how one would go about creating the documents. Best Ways to Store Documents in SharePoint - EnovaPoint

  • Guy Boswell Profile Picture
    234 on 08 Sep 2022 at 15:26:37
    Re: Update SharePoint template spreadsheet using Power Automate

    @AWorley  There is nothing to search for.  SharePoint doesn't store the template as a document.  I know where the document is but the document is not the template.  The document is what SharePoint uses to create the template.  I need to find the template so I can update that

  • Guy Boswell Profile Picture
    234 on 08 Sep 2022 at 15:21:51
    Re: Update SharePoint template spreadsheet using Power Automate

    If it helps I will describe further.

    In any SharePoint document library there is a button [ + New v ]

    Clicking on this allows you to create new documents or folders from a variety of templates

    By default the document templates are blank Word documnet, blank Excel spreadsheet, etc

    But at the bottom of the list is an option [+ Add template]

    This allows you to set up new templates, eg. an Excel spreadsheet with a number of tables already defined, etc

    The template is based on a document you store somewhere (in my case in a sub folder of the document library in question)

    If you update the template document you do not update the template

    So far as I can see you have to update the template document, Edit the New Menu, remove your previous template and create a new template from your updated template document

    I can amend the template document using Power Automate

    Now I want to use the amended template document to amend the template

  • AWorley Profile Picture
    414 Super User 2024 Season 1 on 08 Sep 2022 at 15:21:04
    Re: Update SharePoint template spreadsheet using Power Automate

    Hm. That's not a very standard point in SharePoint as users can really just dump anything anywhere. 

    You could do a search using "when a file is created in a folder" and target the root of the SharePoint then run a condition on if the file display name "is equal to" FILENAME.xlsx and have Power Automate message you in teams with all the info you want when it finds a match ( I represented it with Compose here).

     

     

    AWorley_0-1662650346022.png

     

     

    AWorley_1-1662650364469.png

     

  • Guy Boswell Profile Picture
    234 on 08 Sep 2022 at 15:05:29
    Re: Update SharePoint template spreadsheet using Power Automate

    Hi @AWorley 

    But where is the template used by SharePoint for new documents stored?  I can update my template document.  But that does not update the template based on the document

  • AWorley Profile Picture
    414 Super User 2024 Season 1 on 08 Sep 2022 at 14:59:52
    Re: Update SharePoint template spreadsheet using Power Automate

    Hi! 

    I assume it would be Flowers. 

     

    Without being able to see the flow or file locations it would be hard to properly identify what needs to be done. But there is an action that can perform "Copy File" that takes the destination and can overwrite the file in question as long as they are the same name. 

     

    AWorley_0-1662649121955.png

     

    I use this action for backing up my team(s) entire sharepoint.

     

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started