cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hightechlofi
Frequent Visitor

Add comment to Sharepoint List Item

I am creating an approval flow for a sharepoint document library/list. I would like to add a comment to the item at each step of the approval process to create an audit trail of who did what and when. I cant seem to figure out how/if I can post a comment to and item. Any ideas?

10 REPLIES 10
JohnAageAnderse
Memorable Member
Memorable Member

Hello @hightechlofi 

I can tell you that we are using the built-in version control to track who did what and when. No need for comments about that.

 

We then have a flow that can be used to publish the document, meaning that it will be sent for approval, and if approved, a PDF version of the document is published in another library, whichl the original document goes back to being a draft.

 

Only our PDF versions of documents are the valid ones.

Is the above something similar you are looking for?

Kind regards, John

ScottShearer
Super User
Super User

@hightechlofi 

You might add an additional column (multi-line text) to the library.  Then, post comments to the text column from the approval (approval comments) to the column at each stage.  You might want to turn on versioning and check the "append text" box in the column settings.

Let me know if you need an example.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Definitely a lame way to do it. Suppose this will work however to have a native comment system and not being able to address is out right dumb. 

MooCow
New Member

nothing new still 

JohnAageAnderse
Memorable Member
Memorable Member

Hello @hightechlofi 

I observed that it is possible to add comments to items in a SharePoint list through the UI.

Still not possible for items in a SharePoint document library.

Kind regards, John

Hailender
Frequent Visitor

You can add a comment with a HTTP-request action

2021-02-01 16_59_37-Edit your flow _ Power Automate.png

 

 

 

 

 

 

 

 

 

Or see this article https://laptrinhx.com/add-comments-to-sharepoint-list-items-using-the-rest-api-3384205990/ 

Anonymous
Not applicable

I have not had any luck with that method. The error I get is

"The expression web/lists/GetByTitle("Test")/Items(1)/Comments() is invalid. 

"Microsoft.SharePoint.Client.InvalidClientQueryException"
 
I tried POST and PATCH.

Hi,

 

just to be sure. Your expression includes also the _api/ part like this?

 

_api/web/lists/GetByTitle("Test")/Items(1)/Comments()

Anonymous
Not applicable

I found the issue. I had to use single quotes, both for the list title in the uri and for the JSON object. If I used double quotes, I got the error

KevinDeeb
New Member

A list can have multiple columns known as properties, fields, or metadata. So a list item is a row with data in those columns. Learn how to add and edit single and multiple items, as well as delete items in Share Point lists.

Helpful resources

Announcements
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,074)