Hey Matt,
I actually ended up using the following. It was easy, and it seems to work pretty well.
Paste the following into the OnSubmit button where you want to post a message to a Teams chat:
MicrosoftTeams.PostMessageToChannelV3("Team identifier here (1)", "Channel identifier here (2) >", {content: "<p>put your HTML here... </p>", contentType: "html"});
That's the whole string. Fill it out according to your needs. To get the Team and Channel identifiers (1 and 2, above), I created a new blank screen, and then set up the following:
1. Create a Gallery (call it Gallery1) and set Items == MicrosoftTeams.GetAllTeams().value
2. Add the following labels to the Template for this Gallery:
-- ThisItem.description ---> This is the TEAM descriptor
-- ThisItem.displayName ---> This is the TEAM Name
-- ThisItem.id ---> This is the TEAMS ID you plug into the formula above (1)
This gives you a list of the TEAMS you are a member of.
3. Create a second Gallery and set Items == MicrosoftTeams.GetChannelsForGroup(Gallery1.Selected.id).value
4. Add the following labels to the Template for this Gallery:
-- ThisItem.displayName ---> This is the CHANNEL display name
-- ThisItem.description ---> This is the Channel descriptor
-- ThisItem.id ---> This is the CHANNEL ID that you plug into the formula above (2)
Now you have a list of the CHANNELS associated with the proper TEAM.
Combine everything above and you will be able to send messages to the appropriate recipients.
Hope this helps!
Ted