Hello, I'm making a Sharepoint page where you can post news. I know you can set up a connector where news post is shown in Teams channel. I'm wondering is there a way to make a connector so you can choose if the news is going to show or not and if there are multiply channel so you can choose where the news is going.
Untuvakana yes this is possible and we do exactly the same thing on our intranet where the user who has published a news story can click a button (or not) to publish the news to the all-company Teams General Channel. This requires some JSON column formatting and a flow in Power Automate.
In your Site Pages library you'll need a Single Line of Text column to hold the JSON column formatting. I've also added an extra Single Line of Text column where the flow adds Yes if the story has been added to Teams and turns off the button visibility so it can't be published to Teams twice by mistake,
THE JSON for the button is as follows and you'd need to replace the flow ID with yours, and also the header and flow run text if you wanted to:
If you want to post to multiple channels you will either need to have parallel branches with the adaptive card action in each parallel branch, or you will need a button in your SharePoint list for each Team and then a separate flow for each team.
Rob Los Gallardos Microsoft Power Automate Community Super User. If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.