Declare Trigger Example 1
Hi All,
In this blog we will see example 1 of Declare Trigger.
Follow below steps
1) Create Declare Trigger
CL = C-C-Art-Work-CA
ID = OnCurrentPhaseDisengage
2) Triggers {TAB}
Tigger when an instance is
Saved and ... { Other options = Deleted, Saved, Committed Save, Committed Delete, Saved and ... }
..One of these properties was modified
1) .CurrentPhase
Condition
When = IsCurrentPhaseDisenage
Trigger activity
Name = DisengagedEmail
Execute = Immediately {Other option = In Background On Copy }
Activity
1) Create activity
CL = C-C-Art-Work-CA ID = DisengagedEmail
2) Define Pages & Classes
CaseList Code-Pega-List
CaseList.pxResults C-C-Art-Work-CA
3) Define Steps
1) When {checked} Enable conditions before this action
When = .DisengageMailSent == true if true = Exit Activity if false = Continue Whens
2) When{checked} Enable conditions before this action
.pxInsName=="" if true = Exit Activity if false = Continue Whens
.CAMManagerCECID=='" if true = Exit Activity if false = Continue Whens
3) Property-Set
Param.Subject = "Please update Status for " + .pxInsName + "-" + .AccountName
4) When {checked} Enable conditions before this action
.CAMManagerCECID != "" if true = Continue Whens if false = Skip Step
Property-Set
Param.CAMManager = D_GetOperatorDetails[OperatorID:.CAManagerCECID].pyAddresses(Email).pyEmailAddress
Param.SendTo = Param.CAMManager
5) Property-Set-Corr
*PropertyName = .BookingContactEndDateIsApproaching
*CorrStream = CurrentPhaseChanged
*CorrType = Email
6)
{checked} Enable conditions before this action
When Param.SendTo != "" if true = Continue Whens if false = Skip Step
Call SendEmailNotification
*To = Param.SendTo
From = "outbound@c.com"
*Subject = Param.Subject
*Message = .BookingContractEndDateIsApproaching
Password = ""
smtpHost = javamail
HTMLmessage = checked
7) Property-Set
.DisengageMailSent = true
8) Exit-Activity
Thank you!! Will see you all in next blog post 😊
Comments
Post a Comment