How to create a proper link to Teams meeesage in automtic flow?

Tomasz Bubas 1 Reputation point

I have created a flow that creates a task in a Planner, whenever a new message with specific topic is created in a channel in MS Teams. There is also created a link back to the message in Teams. However, the link works for me but not for the other channel members. I think it is connected with tenantId in the link, which needs to be replaced for other channel members.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,417 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,076 Reputation points Microsoft Vendor

    Hi TomaszBubas-6356,

    Could you give a detailed description or screenshots about the process when you create a flow that creates a task in Planner?

    Moreover, you can refer to this article to learn more about Flow integration in Microsoft Teams:

    0 comments No comments

  2. Tomasz Bubas 1 Reputation point

    Hi @SharonZhao-9394 ,

    There is a screenshot with the flow (but in Polish).
    After the new message is added in a specific channel in Teams it checks if there is some phrase in its topic. If there is one, then it creates a new task in the Planner. Next, it updated the created task in Planner so it has the link to the added message in Teams (which started the automatic flow).
    What I have noticed that the link to the message in Teams consists of such parts as:
    ?tenantId=....... &groupId=...... &parentMessageId=...... &teamName=...... &channelName=........ &createdTime=@{triggerBody()?['id']}

    which can be used to create the link automatically. It worked when I added: createdTime= as a message-id. I


    0 comments No comments

  3. Sharon Zhao-MSFT 25,076 Reputation points Microsoft Vendor

    Hi TomaszBubas-6356,

    Thanks for your sharing about how it works now. It is quite helpful to some in need.

    0 comments No comments