Activity For Creating Indexes for Old Cases
Hi All,
In this post we will how to create indexes for old cases.
Step 1: Create an activity
CL = C-C-Art-Work
ID = OldCasesIndexes
Step 2: Define Pages & Classes
InstanceList Code-Pega-List
CurrentInstance $ANY
Step 3: Define Parameters
ClassName = Class of the instances whose indexes are to be recreated.
Step 4: Write below steps:-
1) Obj-Browse Step Page = InstanceList
PageName = InstanceList
ObjClass = C-C-Art-Work-CA
MaxRecords = 15000
GetRowKey = checked
UseLightWeightList = checked
{checked} pzInsKey Value Only
2) Loop = For each embedded oage Step page = InstanceList.pxResults
2.1) Property-Set
Local.insKey = .pzInsKey
2.2) Obj-Open-By-Handle Step Page = CurrentInstance
InstanceHandle = Local.insKey
Lock = checked
ReleaseOnCommit = checked
2.3) Call RecreateIndexesForInstance Step Page = CurrentInstance
2.4) Obj-Save Step Page = CurrentInstance
2.5) Commit Step Page = CurrentInstance
2.6) Page-Remove Step Page = CurrentInstance
3) Page-Remove Step Page = InstanceList
Thank you!! Will see you all in next blog post 😊.
Comments
Post a Comment