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

Tomasz Bubas 1 Reputation point
2020-05-29T15:07:39.19+00:00

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.
10,311 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,101 Reputation points Microsoft Vendor
    2020-06-01T03:05:12.577+00:00

    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: https://flow.microsoft.com/en-us/blog/microsoft-flow-in-microsoft-teams/.

    0 comments No comments

  2. Tomasz Bubas 1 Reputation point
    2020-06-02T10:34:18.437+00:00

    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

    8809-flow2020-06-02-12-19-33.png

    0 comments No comments

  3. Sharon Zhao-MSFT 25,101 Reputation points Microsoft Vendor
    2020-06-12T06:43:57.947+00:00

    Hi TomaszBubas-6356,

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

    0 comments No comments

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.