Hey folx!
Trying my best to try and get a user's response from a specific message when posted in Teams.
Here is what I expect:
The user will reply to this survey sample with their answers
I would like the user to respond to this message with their answers to this sample set of questions. Then I would need to store their answers somewhere, probably in a Sharepoint list. This is where I'm struggling.
flow so far
This is my flow so far. I'm struggling to get the exact message reply from the user and exactly how to extract the response.
Any help would be amazing.
I know we have some great minds in this community.
Thank you so much in advance!
Solved! Go to Solution.
Hi @Dan-Golden
If users post their replies in the same structure as that of your screenshot of the questions in Teams (especially there are 2 whitespace).
I tried to get the questions in the message in Teams. And fill those questions respectively into sharepoint list.
Here is the message I post in Teams:
Here is the result in sharepoint list:
Then the following flow is for your reference:
The detailed steps for ‘html to text’ and the first four ‘composes’:
The functions used:
replace(outputs('Html_to_text')?['body'],'Q',' ')
replace(outputs('Compose_2'),':',' ')
split(outputs('Compose_3'),' ')
The detailed steps for ‘filter array’ and ‘initialize variable’:
The function used for ‘Item’ in ‘filter array’:
item()
Just put in an ‘enter’ on keyboard for the bottom right box in ‘filter array’.
The detailed steps for ‘Apply to each’ and ‘compose 6’:
The dynamic content ‘Body’ is from ‘filter array’.
The dynamic content ‘Outputs’ is from ‘Compose 5’.
The function used:
trim(items('Apply_to_each'))
The detailed step for ‘create an item’:
The function used for Question1/2/3 are respectively:
outputs('Compose_6')[0]
outputs('Compose_6')[1]
outputs('Compose_6')[1]
For more info about replace(), split(), trim():
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
The [0]/[1]/[2] are used to get the first item/second item/third item respectively.
If I’ve misunderstood your need, please feel free to let me know.
Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Dan-Golden
If users post their replies in the same structure as that of your screenshot of the questions in Teams (especially there are 2 whitespace).
I tried to get the questions in the message in Teams. And fill those questions respectively into sharepoint list.
Here is the message I post in Teams:
Here is the result in sharepoint list:
Then the following flow is for your reference:
The detailed steps for ‘html to text’ and the first four ‘composes’:
The functions used:
replace(outputs('Html_to_text')?['body'],'Q',' ')
replace(outputs('Compose_2'),':',' ')
split(outputs('Compose_3'),' ')
The detailed steps for ‘filter array’ and ‘initialize variable’:
The function used for ‘Item’ in ‘filter array’:
item()
Just put in an ‘enter’ on keyboard for the bottom right box in ‘filter array’.
The detailed steps for ‘Apply to each’ and ‘compose 6’:
The dynamic content ‘Body’ is from ‘filter array’.
The dynamic content ‘Outputs’ is from ‘Compose 5’.
The function used:
trim(items('Apply_to_each'))
The detailed step for ‘create an item’:
The function used for Question1/2/3 are respectively:
outputs('Compose_6')[0]
outputs('Compose_6')[1]
outputs('Compose_6')[1]
For more info about replace(), split(), trim():
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs
The [0]/[1]/[2] are used to get the first item/second item/third item respectively.
If I’ve misunderstood your need, please feel free to let me know.
Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Let me give this a whirl today. This appears to be the solution! Thank you.
Hi @Dan-Golden
If your problem has been solved by my method, could you please mark it as solution to help other members to find it more quickly?
If you still have the problem, please feel free to let me know.
Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
49 | |
41 | |
39 | |
36 | |
34 |
User | Count |
---|---|
68 | |
65 | |
65 | |
54 | |
49 |