How do you post an adaptive card from a workflow as an application and not your own user?

Wolf-1234 30 Reputation points
2024-07-25T09:28:25.32+00:00

Hello,

since Microsoft is retiring the Incoming Webhook connectors (and yes I have read that they postpone the retirement, but still we need a usable solution until the end of next year), I have tried to migrate our company webhooks to the Teams Workflow app. Our current webhook posts a message in a channel in our team.

However we have two problems with the flow that is created by the suggested "Post to a channel when a webhook request is received" template:

  1. The flow is only available for me personally. I have added the Workflow app to the channel, but when I add a flow there, it stays empty in that tab and the flow was added to my personal flows instead. I believe that I need to choose the channel/team as the connection inside the flow, but I can only add myself as the connection. How do I choose the team as the connection? (Please dont recommend me to just "share" the flow with my colleagues, because 1. I cannot choose the whole team there and I cannot add each user one by one and 2. it would still use MY connection, so everyone could post stuff with my account, that is a no go).
  2. When the flow is triggered and uses the "Post card in chat or channel", it uses my username as the sender in that channel as "[MY NAME] via Workflows". I do not want it bound to me, since it is an application that sends the message and if I leave the company we do not want to change every single webhook. So how do I let an application/bot be the sender of the message?

Sadly I cannot find any documentation for these things. The link above only mentions "it works via workflows", but not where we can find it. Since the old webhooks could do all this and you deprecate them, you should advice us on how to implement the same functionality with your new tool.

I realize that the deprecation has been postponed, but that still means we need to migrate one day, so we need a solution for this.

Thanks in advance!

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,308 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,339 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 6,876 Reputation points Microsoft Vendor
    2024-07-25T10:47:59.56+00:00

    Thanks for raising your query and we completely understand your concern.

    1. If you create a workflow to post notification to any team's channel, the flow will get added to your personal flows. This is by design. You can share the created flow; however, you do not want to go through that process. We understand your concern. We will check this with engineering team if there is any alternative and if we get any info about alternatives, we will inform you in this thread.

    2.If you send by using option 'Flow bot', it will send as "[Your NAME] via Workflows" and if you send by using option 'User', it will send as "[Your NAME]"
    User's image You can also choose Power Apps option. FYI Post as Power Apps can only be used to send Cards for Power Apps into Teams. Please add Cards for Power Apps action in your flow.

    We will share these above raised concerns/feedback with engineering team and will notify you in this thread once we have any further update. Thanks!

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.