Question

In SharePoint Online, I am trying to see if there is a way to update managed metdata term set term values from values stored in an excel file. Basically client would like to automate this process by scheduling a powershell script via a task scheduler so they don't have to manually add the new term values.

I have a term set setup called "Programs" as shown in the below screenshot. enter image description here

So now the requirement is to have An excel file stored in OneDrive which will usually be updated on weekly basis with more terms being added relevant to Event Type and Location terms. Please see below excel file screenshot that can be stored in excel located in OneDrive or any other place to make this to work, open to suggestions.

enter image description here

As you can see, I have Event Type and Location setup as column headers. So is it possible to update term specific values in term store by leveraging values added in excel file. Also I would like to make sure that there is no duplication be done in regards to term values.

If someone knows what can be done here, please help with a solution. Thanks in advance. FYI, open to any suggestions as long as the solution would work in SPOnline.

Was it helpful?

Solution

You could import the terms from excel using PowerShell in SharePoint online. Then you could schedule to run the PowerShell from the task scheduler.

More references:

SharePoint Online: Import Terms to Term Set from CSV using PowerShell.

How to Run a SharePoint PowerShell Script From Task Scheduler.

OTHER TIPS

Well yes, it is posible to make a powershell script that will update the term set from the excel sheet. However it will take time to ensure that it handles the many edge cases, and since the excel file is stored in onedrive, I guess this is for one person only. I think it would be way more efficient to show that person how to use the Term Store, or ask IT support to update the term set when that user needs it

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top