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?

9 REPLIES 9
JohnAageAnderse
Super User
Super User

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 III
Super User III

@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
Super User
Super User

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/ 

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()

mccoydblueloop
Frequent Visitor

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

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (35,195)