Skip to main content

Greetings,

I need to read the comments mention by user in the K2 Task list and show it in the email. The same comments should also be updated in the Sharepoint list.


What is the way to do it.

Thanks,

Hi Aman, It's possible to retrieve commnets. Read the following paragraph


SPComments (hidden)


This (hidden) datafield is very useful to know about, since the comments entered by users during Client Events are saved into the XML field. If you wanted to include comments from the manager as to why the request was rejected, for example, you can find the manager’s comments in this XML structure. The table below describes the values saved in this XML datafield.

 


FieldValue StoredSample Value
CommentsA repeating node containing all the comments entered by various users during the workflow Client Eventsn/a
EventNameThe name of the Client Event for the user taskManager Approval
CommentA repeating node, since a task may have had more than one user’s inputn/a
UserNameThe user name of the user that completed the taskDENALLIXadministrator
DisplayNameDisplay Name of the user that completed the taskDENALLIXadministrator
DateTimeThe date that the task was completed1/26/2012 2:40 PM
BodyThe comment body entered by the approverNot _x0020_enough _x0020_leave _x0020_days

 


Note that the special characters like space are encoded.

ActionThe action selected by the user when completing the itemRejected


 

Reply