@Sydney - The issue you're encountering with selecting a specific channel for posting a message after form submission in Microsoft Teams might be due to permissions or visibility settings of the channels within your team. Here are a few steps and suggestions to help you resolve this issue:
1.Verify Permissions
Ensure that the user account or the app/bot executing the workflow has the necessary permissions to access and post messages in the desired channels.
2.Check Channel Visibility
Make sure that the channels you want to post in are not private or hidden from the user executing the workflow. Only public channels or channels where the user is a member will be visible.
3.Using Custom Value
If you need to use a custom value to specify a channel, you can manually input the channel ID. Here’s how you can find the channel ID:
Open Microsoft Teams: Navigate to the channel you want to post in.
Get the Channel ID: Click on the three dots (...
) next to the channel name. Select "Get link to channel." Copy the link provided, which will look something like this: https://teams.microsoft.com/l/channel/19%3a<channel-id>%40thread.tacv2/General?groupId=<group-id>&tenantId=<tenant-id>
Extract the <channel-id>
part from the URL. This is the channel ID you need.
4.Using Power Automate (Flow)
If you are using Power Automate (Flow) for the workflow, you can manually set the channel ID using the "Post a message" action:
Create a Flow:
If you are using Power Automate (Flow) for the workflow, you can manually set the channel ID using the "Post a message" action:
Create a Flow:
- Go to Power Automate.
- Create a new flow for your form submission.
Add the "Post a message in a chat or channel" action.
- Choose the team where the channel resides.
- For the channel, select "Enter custom value."
- Input the channel ID you retrieved earlier.
Complete the Flow:
- Configure the rest of your flow as required.
Save and test the flow to ensure it posts the message in the desired channel.
Here’s an example of how the JSON configuration might look if you were using an Adaptive Card to post a message:
{
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "Task Created",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "A new task has been created from the form submission.",
"wrap": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "View Task"
}
],
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>channel</at>",
"mentioned": {
"id": "<channel-id>",
"name": "Channel Name"
}
}
]
}
}
Thanks,
Nivedipa
----------------------------------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.