Setting to property to Yes In All Cases Bulk Update Activity
Hi All,
In this activity we will see how to update bulk cases.
Follow below steps
Step 1: Create Activity
ID = UpdateCPCases
CL = C-C-Art-Work-CA
Step 2: Define Pages & Classes
CaseList Code-Pega-List
CaseList.pxResults C-C-Art-Work-CA
Case C-C-Art-Work-CA
Step 3: Define Steps
1) Obj-Browse Step Page = CaseList
Page Name = CaseList
ObjClass = C-C-Art-Work-CA
MaxRecords = 10000
UseLightWeight = checked
Logic = A OR B
A {checked} .pyID Contains "CXEA"
B {checked} .pyID Contains "CPLUS"
2) Loop = For each embedded page
Property-Set CaseList.pxResults {Step Page}
Param.CaseID = CaseList.pxResults(<CURRENT>).pyID
2.1) Obj-Open Step Page = Case
Open Class = C-C-Art-Work-CA
Lock = checked
ReleaseOnCommit = checked
.pyID = Param.CaseID
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to Later Step ERR
2.2) Property-Set Step Page = Case
.SoftwareIncluded = "Yes"
2.3) History-Add Step Page = Case
History Memo = "Updated Software Included"
Category = pyHistoryMemo
2.4) Obj-Save Step Page = Case
2.5) call commitWithErrorHandling Step Page = Case
2.6) Label = ERR Page-Remove Step Page = Case
3) Page-Remove Step Page = CaseList
4) Exit Activity
Thank you!! Will see you all in next blog post 😊.
Comments
Post a Comment