From a Power Automate Flow, how do you create a new article in a Staffbase channel? Sounds simple, but the Staffbase documentation is lacking a key piece of info.
For this to work, you will need a Staffbase API token, the ability to update channel settings, the channel ID, and a premium Power Automate or Power Apps license. If you have access to a Logic App, you might be able to get around the premium license requirement.
How to obtain an API token:
Open your Staffbase site
Click on your initials in the top right corner and select Studio.
If you don’t see the Studio option, contact your admin and ask them to help.
In Staffbase Studio, click the gear icon in the top right corner.
In the left nav area, you should see API Access in the Authentication and Security section.
On the API Token page, click the + Create API token button.
Name: M365 Power Platform
Access: Restricted Read-Only (yes, this is correct)
Click the Create button
Grant the API token access to your target channel.
Your Staffbase Studio should have a Content tab at the top of the page. Click it.
Click on the channel you want to post to.
Click on the gear icon next to the channel name.

In the channel settings page, you will want to add your API Token to the Contributors role.

If you do not see your API Token in the list, go back to the API Access page and verify it exists.
How to get the Staffbase channel ID:
With the channel settings page still open
Look at the URL, the part of the URL after news/ is your channel ID
Copy it, you will need it in your flow.
Example: Taco63599a0123456789

How to post to a Staffbase channel from a flow:
Head over to https://make.powerapps.com/
Click Flows, + New flow, instant cloud flow
Flow name: Staffbase Test Flow
Trigger: Manually trigger a flow
Click the Create button.
Note: You can trigger the flow from your favorite data source. I’m simply using this trigger to limit the length of this blog post. Yes, I’m using the classic flow design, but the same basic steps apply to the new designer.
In the flow, under your trigger action, add the Staffbase Channels: Send a post to specific channel action.

Staffbase connection details:
Connection name: Staffbase
API-Key: Basic your API token from Staffbase Studio.
Hosting ID: us1

NOTE: You must enter the word Basic before your API key; otherwise, it will not work. This is noted in the documentation, but it’s easy to overlook. Also, I’m in the US, so I used us1 for my Hosting ID value.
API key example:Basic 123435456dafkjasdfkjadsfad
In the Channels: Send a post to specific channel action, populate the channel ID you copied from Staffbase Studio (noted above), the content field, and the title field.
Test the flow.
If you leave the published field empty, it will post to Staffbase as a draft. If you want the post to be published, enter a date in the field.
