question

TomaszBubas-6356 avatar image
0 Votes"
TomaszBubas-6356 asked ·

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

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.

office-teams-windows-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered ·

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/.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TomaszBubas-6356 avatar image
0 Votes"
TomaszBubas-6356 answered ·

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



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered ·

Hi TomaszBubas-6356,

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

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.