Automate LinkedIn Posting with Power Automate

Introduction
LinkedIn is like the bustling coffee shop of the professional world – full of insightful conversations, the latest industry buzz, and a chance to showcase your expertise. But let’s be honest, remembering to post every time you publish a new article can feel like trying to remember where you left your keys. Enter Power Automate, your new best friend for hassle-free LinkedIn updates. With the LinkedIn V2 connector, you can automate LinkedIn posting. To ensure your content reaches your audience without lifting a finger. Say goodbye to the posting chore and hello to more time for sipping that latte!
Automate LinkedIn Posting
To begin with, let’s make an automated cloud flow:

In this flow, we’ll use the ‘When a feed item is published’ trigger to monitor my RSS feed and automatically post to LinkedIn whenever a new blog post is added.
Trigger the Flow
To set this up, we’ll need to include the feed URL. Which in my case is www.benjamincrowe.co.uk/feed. To determine which items are new, I can use either the publish date or the date the feed item was last updated.

This trigger provides a collection of outputs as shown below. The main ones I’ll need for this flow are; Primary Feed Link (as I should only have one post per trigger), Feed Title and Feed summary.

Now I could just add in the LinkedIn action and be done with it. However, I need to amend the feed summary output before I can post it to LinkedIn. This is because the output for the feed summary includes HTML tags which I need to remove.
<p>Testing automatic posting to linked in.</p>
<p>The post <a href="https://www.benjamincrowe.co.uk/this-is-a-test/">This is a test</a> appeared first on <a href="https://www.benjamincrowe.co.uk">Benjamin Crowe</a>.</p>
Process the feed summary
This is achieved using the ‘HTML to text’ action. Though reader beware, this action is currently in preview so I would hesitate to use this in a business-critical flow.

Post to LinkedIn
Now we have that sorted let us post this puppy to LinkedIn to share with our connections and a wider audience.

After I’ve searched for LinkedIn, I’ll choose the ‘Post an article’ action. There are two required properties needed to be able to use this action.
Commentary | The commentary of the post. In other words the content. |
Visibility | The visibility of the post. This allows us to decide who can see our article post, there are three options: – Public – Connections Only – Logged In Users |

For the Commentary, I’ll include the output of the HTML-to-text action. This is the altered Feed summary with all the HTML tags removed. For Visibility, I’ll choose Connections Only.

Then we need to add a link to the post and its title.

Conclusion

And there you have it! With just a few simple steps, you can set up a seamless flow to automate LinkedIn posting using Power Automate and the LinkedIn V2 connector. No more scrambling to remember to share your latest blog post with your network – now you can focus on creating great content while Power Automate handles the rest. Whether you’re sipping your latte or deep in a brainstorming session, you can rest easy knowing that your LinkedIn profile is up-to-date and engaging. So go ahead, give it a try, and watch your professional presence on LinkedIn flourish effortlessly!
Leave a comment