Forum Discussion

WillVitale's avatar
WillVitale
Contributor II
1 hour ago

How to Pull Workflow Certify Comment into BR Email

Hello,

I'm trying to pull in the certify comment section when a user clicks on the "Set Certification Status" button. We currently are using the Workflow Event Helper to send the email when the certification is set to In-Process or Certified.

Dim oEntityList As List(Of WorkflowProfileEntityInfo) = BRApi.Workflow.Metadata.GetProfileEntities(si, oWorkflowInfo.WfUnitPk.ProfileKey)
									emailTo = BRApi.Finance.Entity.Text(si, oEntityList(0).EntityMemberID, 8, False, False)
									emailBody = $"[{si.AppName}] - Status Of {sWFProfileName} WF | {sWFScenario} Scenario For {sMonth} {iYear} was changed To {If(oWorkflowInfo.IsCertified, "Certified", "InProcess")} By {si.UserName} | {oWorkflowInfo.Comment}"
									emailSubject = $"FM Task: {sWFProfileName} Certification Status has been changed to {If(oWorkflowInfo.IsCertified, "Certified", "InProcess")}"
									FBR_ConnectorLibrary.emailSend(si, emailTo, emailBody, emailSubject, emailBody)

Thanks,

Will

No RepliesBe the first to reply