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.

24 REPLIES 24
ekarim2020
Community Champion
Community Champion

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
Super User
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.'.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,768)