How to Add Comments to SharePoint list items using Power Automate?

In this Power Automate tutorial, I will show you, how to add comments to SharePoint list items using Power Automate. In addition, I will also show you, how to mention multiple people in list item comments in SharePoint Online list using Microsoft Flow:

Add Comments to SharePoint list items using Power Automate

Here we will see how to add comments to a SharePoint Online list item using Power Automate or Microsoft Flow.

In this example, we will use the Employee SharePoint list to add comments using the flow:

C:\Users\TSinfo\Desktop\Add Comments to SharePoint list items using Power Automate

Create an Automated cloud flow with the trigger when an item is created. Configure the SharePoint site address and List Name.

Add comments to sharepoint list item using Microsoft flow

Select + New step, and Add a Send an HTTP request to the SharePoint action. Also, set the properties such as:

  • Method – POST
  • Uri /_api/web/lists/getByTitle(‘Employee List’)/items(@{triggerOutputs()?[‘body/ID’]})/Comments
  • Headers 
    • accept – application/json;odata=verbose
    • content-type – application/json;odata=verbose
  • Body– (Insert the below REST API code)
{
"text": "The new comment has been added to the SharePoint List Using Power Automate"
}
Add comments to sharepoint list item using power automate
Add Comment to SharePoint list Power Automate flow
  • Now, click on save and test the flow manually. We will create an item in the SharePoint list.
Add comments to sharepoint online list item using power automate

Once the flow ran successfully, we can see that comments had been added to the created SharePoint list item.

Power automate add comments to sharepoint list item

In the below screenshot, you can see that the comment has been added to the created item in the SharePoint list.

Power automate add comments to sharepoint online list item

This is how to add comments to a SharePoint Online list item using Power Automate.

Mention multiple people in SharePoint list item comments using Power Automate

Here we will see how to mention multiple people in SharePoint list item comments using Power Automate.

In this example, we will use the SharePoint Online Task list to add comments using the flow:

Mention multiple people in SharePoint list item comments

Create an Automated cloud flow with the trigger when an item is created. Configure the SharePoint site address and List Name.

Mention multiple people in SharePoint list item comments using Power Automate

Select + New step, and Add a Send an HTTP request to the SharePoint action. Also, set the properties such as:

  • Method – POST
  • Uri /_api/web/lists/getByTitle(‘TaskList’)/items(@{triggerOutputs()?[‘body/ID’]})/Comments
  • Headers 
    • accept – application/json;odata=verbose
    • content-type – application/json;odata=verbose
  • Body– (Insert the below REST API code which is in an array format to mention multiple users)
{
   "text": "This is a Task Status. Please Check it @mention{0} and @mention{1}",
   "mentions": [
      {
         "email": "@{triggerOutputs()?['body/AssignedTo/Email']}"
      },
      {
         "email": "@{triggerOutputs()?['body/Author/Email']}"
      }
   ]
}
Add Comments to SharePoint list items using Power Automate

Now, click on save and test the flow manually. We will create an item in the SharePoint list.

Add Comments to SharePoint list items using Power Automate

Once the flow ran successfully, we can see that comments had been added to the created SharePoint list item.

Add comments to sharepoint list item using power automate

In the below screenshot, you can see that the comment has been added to the created item with Multiple mentions in the SharePoint list.

Add comments to sharepoint online list item using power automate

Once the comment has been added, the mentioned users will receive a mail like below, When they click the Go to Comment option it redirects to the mentioned item in the SharePoint list.

Mention multiple people in SharePoint list item comments using Power Automate flow

This is how to mention multiple people in SharePoint Online list item comments using Power Automate.

Conclusion

In this Power Automate tutorial, we saw how to add comments to a SharePoint list item using Power Automate. In addition, we also saw how to mention multiple people in list item comments in a SharePoint list using Flow or Power Automate.

You may also like the following Power Automate tutorials:

>