Get comment of requested approval in Power Automate
-
16-02-2021 - |
Pergunta
I'm trying to get the comment which you can leave when you submit a modern page for approval.
But if I use "Comments associated with moderation of list item", I get no result!
How do I get this comment? Is the dynamic content "Comments associated with moderation of list item" right? Or do I need to use a other dynamic content?
Solução
When you edit the view of the site pages, you will find Approver comments and Check in Comment. The dynamic content "Comments associated with moderation of list item" is Approver comments. The Check in Comment is what you want. And per my test, there is no dynamic contents represent the Check in Comment. To get this comment, you may need to send Http request to SharePoint to get this comment.
Updated:
Uri:_api/web/lists/getByTitle('<listName>')/items(<id>)/versions
Headers: content-type
application/json;odata=verbose
Filter array Expression:
body('Send_an_HTTP_request_to_SharePoint')['d']['results']
item()['OData__x005f_CheckinComment']
null
Email body:
body('Filter_array')[0]['OData__x005f_CheckinComment']
Test results: