I have a PX Policy that executes after an Approved or Rejected event and performs a few SQL queries to determine if a comment was added. The entry rule could could be if Comments not "", perform a Send Email action. Your DB names might be different than mine, but hope the example below helps. In other data elements I get the approval node and approver ID. Trim and run thru a list iterator if necessary. This is also dependent on knowing the task ID, I set that at the beginning of the task using BLTH.
Edit: For clarification, this method allows you to obtain the comments from the standard Identity Portal "Leave your comment here" section. It does not require adding a new comment field to the form.
Example
SELECT DISTINCT IPA.comments
FROM [CAIM_Workflow].[dbo].[WP_PROCI] WP,
[CAIM_Workflow].[dbo].[WP_ACTI_DATA] WAD,
[CA_IdentityPortal].[dbo].[Approval] IPA
WHERE WAD.PROCI_ID = WP.PROCI_ID
AND WP.NAME = '{'Get Task ID'}'
AND IPA.comments IS NOT NULL
AND IPA.taskID LIKE '%' + CONVERT(varchar(50), WAD.ACTI_ID) + ':WPDS'
Original Message:
Sent: 06-03-2020 10:22 PM
From: William Cheang
Subject: Approver comment to include in email notification
Hi Team,
Identity Suite vapp 14.3 VAPP.
When an approver, try to approve/reject a request, they can fill up comment field.
Let said approver fill up comment field and approved the request, can we include the comment value into email notification(Event Approved) ?
regards,
William