How To: Add and View Workflow Comments

This topic shows you how to add and view comments in a form that are associated with a workflow instance.

Example


Scenario

As part of a leave process, you want to add and view comments about the workflow instance. In this scenario, an employee submits a leave form and adds a comment on the form. For the approval task, comments are shown and the approver can add additional comments. You use the out-of-the-box Workflow Comments SmartObject to add and view comments in the leave form. The Leave Approval form contains three views: The Leave Request view contains leave information linked to a Leave SmartObject, the Comments view is used to show a list of the previous comments for the workflow instance, and the Add Comment view is an Item view based on the Workflow Comment SmartObject. You use rules to integrate the form with the workflow and hide the Comments view from the employee when they complete the form.

If you want to add and view attachments associated with a workflow instance, you can follow a similar procedure using the Workflow Attachments SmartObject.