cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hdonato
Advocate I
Advocate I

Get Microsoft Lists Comments using Flow

Hi, Everyone
Would like to know if there's a way to get the comments on a list item using power automate? or a way to notify users when new comment is added?

hdonato_0-1610026594819.png

 

Would greatly appreciate any help.

Thank you.

27 REPLIES 27
ekarim2020
Super User
Super User

Hi @GuyBoswell,

 

Can you remove the value from the Select field and can you build the expression again?

 

1. Try and find the body field first and select it. This way we know for sure that there is no typo in the action name in the expression

 

findbodyfield.png

 

2. Type the ['d']['results'] part yourself in the expression editor.

 

typedresults.png

 

 

Btw, what headers are you using in the Send an HTTP request to SharePoint action?

 

headersinhttpaction.png

Nope!  You get body('Send_an_HTTP_request_to_SharePoint_-_AllComments')?['body']['d'], not outputs('Send... which throws an error

InvalidTemplate. Unable to process template language expressions in action 'Select' inputs at line '1' and column '3371': 'The template language expression 'body('Send_an_HTTP_request_to_SharePoint_-_AllComments')?['body']['d']' cannot be evaluated because property 'd' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.

Expiscornovus
Dual Super User
Dual Super User

Hi @GuyBoswell,

 

Strange that it doesn't like the outputs function. If it wants to use the body function instead you could remove the second body from the expression.

 

In that case the expression would be:

body('Send_an_HTTP_request_to_SharePoint_-_AllComments')?['d']['results']

 

InvalidTemplate. Unable to process template language expressions in action 'Select' inputs at line '1' and column '3369': 'The template language expression 'body('Send_an_HTTP_request_to_SharePoint_-_AllComments')?['d']['results']' cannot be evaluated because property 'results' doesn't exist, available properties are 'Comments'. Please see https://aka.ms/logicexpressions for usage details.'.

cardinalNight
Helper I
Helper I

Was this ever resolved? I'm attempting to setup this exact flow myself, but failing miserably 🙂

"One oddity - if a comment includes an @ it returns something like this for the text of the comment,

@mention{0&$125; Have a look at this"
Has anyone else figured out a way around this issue? We use comments often and use them in automated emails, so this was a bummer to run into.... Tried many different things and haven't figured it out.
@Expiscornovus any ideas?

 

 

Expiscornovus
Dual Super User
Dual Super User

Hi @DawggHouse13,

 

Yes, @DamoBird365 has a great post about how to handle the mentions from the comments list. Have a look at this article: https://www.damobird365.com/microsoft-list-add-comment/

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,414)