Skip to main content

We have a scenario like, a task is sent to many approvers who will approve or disapprove the activity.

For this we have to create an escalation. If any of these approvers did not take any action (approve or disapprove) for 7 days then we have to send an escalation email to that particular approver. Not for others who completed their tasks for that activity. Our problem here is to find out that particular approver who did not take any action. We need to fetch the FQN of this person and set him as destination and shoot an email to him reminding him of the pending task. How to get this thing done?  

Not complete code and need verify status text.  

Do you only need to shoot a reminder?   Why do you need to set the person as destination again?

Sub Main(Byval K2 as EscalationActionContext)
    Dim Dest As ActivityInstanceDestination      
    For Each Dest In K2.ActivityInstance.Destinations
        If (Dest.Status = "Active" orelse Dest.Status = "Open") Then
            CustomEmailUserFunction(Dest.User.Email)
        End If
    Next
End sub


Reply