I created a Share to Teams embedded button refer to this page.
I can send message to team or channel but can't send to person although it says "This will allow you to share a link directly to any person or Microsoft Teams channel ".
How can I send message to person?
Related
I am developing a PowerAutomate flow,
I want to use the function "post message in chat or channel",
I can send messages to anyone in "one to one" private chats but not on the private chat i have with myself.
Has somebody found a way to message himself via power automate?
I can't create it as a "new chat" in PA because it says users cannot be duplicate.
Then i figured out i had to find the ID of the chat with myself.
I tried using the microsoft graph api to retrieve the id from "me/chats" but the chat with myself is not shown.
I tried many different filters and expansions with no success.
I also tried analyzing the id itself and discovered that, in the case of "one to one" chats, it's made of {the sender id} and {the receiver id}
I then tried constructing an id that contains 19:{myuserid}_{myuserid}#{domain} but it responds that there is no record.
I tried many combinations,
thanks for the help.
Currently it is not possible to send messages/cards to self chat as the self-chat id is not exposed.You can raise suggest this feature at Microsoft Teams Feedback portal.
Please not that if you post card using below settings it will send a card to you but as a separate chat with Power Automate.
I am using power automate to post a message to a teams channel. The message cannot be edited by admin of that teams channel or any user in that channel. I could not find an option to make the teams message editable or make it editable only by admin of that channel. Any pointer on making power automate teams message editable by admin of the group?
In general messages sent from one "user" (or bot) can't be edited by other users, even an admin - that would be a disaster for things like auditability. However, messages sent from a bot (e.g. the Flow bot) -can- be edited by the bot. However, in the case of Power Automate, it does not offer this as an action for the "post a teams channel message" Action, only for the Action that sends an Adaptive Card message. If you can change your flow to send this kind of message, there is an action to then update it later, using the message id.
I have deployed my bot on teams channel.
I would like to send a welcome message to a new user even before user sends a message to the bot.
can we achieve this for teams channel?
If yes, which event can be used to get that user is accessing bot for the first time.
You can use the ConversationUpdate event ActivityTypes.ConversationUpdate // in c#
When a bot is installed, your bot receives a conversationUpdate event. You can then send a proactive message to the user. Could you please try sending a proactive message and let us know if you face any issues?
The conversationUpdate event with the membersAdded object in the payload is sent when either a bot is added to a team or a new user is added to a team where a bot has been added. It is always a good practice to send a welcome message introducing the bot to all the users. Ensure that your bot responds to the conversationUpdate message, with the teamsAddMembers eventType in the channelData object. Also, keep in mind that the memberAdded ID is the bot's App ID itself, because the same event is sent when a user is added to a team.
Hope this helps.
In Teams, it's possible to create a bot with a team scope. When this happens, at install time the user is prompted to choose a team, and then specify a channel "where you want to use the app".
When the users chooses a Team, I see the conversationUpdate message with the MembersAdded list containing the bot, but when the users choose the specific channel, I don't see any message. Is it possible to catch this event and respond to it?
Use case is: I don't want to put a welcome message in the General channel, I want to put it into the channel the user just chose.
Currently, this is not supported. We have added feature request for this.
I would like to open new conversations with users using the Microsoft Bot Builder on the Skype for Business channel. The only information I have is the user id (sip:user#domain.com)
In all the examples I could find, it is needed to save the conversation id/address of a user in a previous conversation to send a new message to this user.
How to create a new conversation as a bot to a user knowing only his id?
Thanks
Like you stated the userId is required to send a message to the user. A new conversation can be created by the framework but ultimately, you can't do anything without the userId and to obtain this the user has to contact your bot first. This is only true for channels like Skype. Other channels like E-mail just use the email address as an id. Skype uses a GUID as the id for their users. This is done so bots can't randomly add themselves to any user on Skype. Source
This doesn't mean you have to necessarily wait for the user to start a conversation. Whenever a user adds a bot to their contact list an event is send to the bot. This is the ContactRelationUpdate event. It warns the bot that a user has added the bot and the bot can then respond accordingly. Once this event is thrown you can obtain the userId from the activity and do whatever you want with it. Source