Automatically update an Excel Sheet to track data shared in a Teams Conversation post?

Cox,Andy 0 Reputation points
2023-08-03T16:36:08.77+00:00

I work for a university residence hall and I am seeking a way to easily keep track of what rooms have had noise complaints. Right now, our RAs post a message each morning into a Teams Channel with an outline of their duty shift, and I want to connect these messages to an excel spreadsheet. When a room number is shared in a message, I want that to add a line to an Excel sheet. Any ideas on how to do specifically this? I am struggling with getting the specific room number into the excel sheet rather than the ENTIRE message.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,895 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LiweiTian-MSFT 24,890 Reputation points Microsoft External Staff
    2023-08-04T06:00:43.1766667+00:00

    Hi @Cox,Andy

    Teams does not currently have the ability to automatically extract certain text from channel messages and upload it to Excel.

    I suggest you use PowerAutomate to implement this function. According to your needs, using PowerAutomate to achieve this requirement has the following prerequisites:

    a. The message sent to the channel must have a fixed format (for example, the text before and after the room number is the same every day)

    b. There must be a table in Excel to store the room number (PowerAutomate can only add data to the table but not to the Sheet)

    I made a test for your reference:

    Daily duty outline: There are noise complaints in room A203, please deal with them in time.

    User's image

    User's image

    In the expression last(split(first(split(triggerOutputs()?['body/body/content'],',')),'room')) used in the room number field:

    triggerOutputs()?['body/body/content'] gets the messages sent in the channel.

    Functions like last, first, split are designed to get the room number.

    This document guides the use of PowerAutomate functions. If you meet the above two conditions but do not know how to write expressions, please provide the text format you receive every day so that I can help you better.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    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.