How to get all terms from Managed Metadata Service in SharePoint?

In this post I want to show you quick solution how to get all terms from Managed Metadata Service in Sharepoint Online

Problem

A colleague from my company asked me is there an easy way to get all terms from Managed Metadata Service in SharePoint Online. I told him:

– “sure, there is managed metadata app that allows you to navigate through whole managed metadata terms structure. Have you tried that?”

– “Yeah I know. But I need to export all terms, with their structure path and present them in list” (don’t really remember specific reason – suppose some data science probably). 

– “Oh, I see…”

Continue reading “How to get all terms from Managed Metadata Service in SharePoint?”

Clean inline html styling

Problem

I need to clean inline html styling from a text file

Solution

Just use below powershell line:

Get-Content .\someTextFile.txt | Foreach-Object {$_ -replace 'style=".*?"',""} >>newTextFile.txt

Explanation

In my case I’m making all kind of notes (short one, long ones, even blog posts drafts) in Microsoft Onenote (I will write some post about how to get all bests from this awesome tool). Since Onenote allows for simple formatting (headings, bolding, cursive etc) I very often use it’s built-in styling. Continue reading “Clean inline html styling”