cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

MS Teams Post in HTML

Hi,

 

I created a flow to post messages in MS Teams when an item has been created in an SP list. But it's coming out as HTML. 

 

Help! 😐

 

sandyabegail_1-1602754555395.png

 

sandyabegail_0-1602754445259.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

Hi @sandyabegail 

 

The person type column returns the data in format as you have shown but you can just get the person display name as well. So in the Post a Message action, for the person name, you can select the Assigned to Display Name from the dynamic selector or use the expression triggerOutputs()?['body/AssignedTo/DisplayName']

 

The date columns are returned in the ISO 8601 format. So you can use the expression: 

formatDateTime(triggerOutputs()?['body/DueDate'],'dd-MMM-yyyy') for a better readable format. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User III
Dual Super User III

Hi @sandyabegail 

 

The person type column returns the data in format as you have shown but you can just get the person display name as well. So in the Post a Message action, for the person name, you can select the Assigned to Display Name from the dynamic selector or use the expression triggerOutputs()?['body/AssignedTo/DisplayName']

 

The date columns are returned in the ISO 8601 format. So you can use the expression: 

formatDateTime(triggerOutputs()?['body/DueDate'],'dd-MMM-yyyy') for a better readable format. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

@yashag2255 Thank you that helped! 🙂

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (12,879)