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?
Would greatly appreciate any help.
Thank you.
Solved! Go to Solution.
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
2. Type the ['d']['results'] part yourself in the expression editor.
Btw, what headers are you using in the Send an HTTP request to SharePoint action?
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.'.
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.'.
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?
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/
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
28 | |
27 | |
23 | |
14 | |
10 |
User | Count |
---|---|
62 | |
50 | |
30 | |
29 | |
24 |