Delete Data From Index And Work Table In Pega
Hi All,
In blog we will see how to delete data from 2 tables using activity.
Follow below steps:-
Step 1: Create Activity
CL = Index-C-C-Art-Data-DeliverablesList
ID = DeleteCaseFromWorkAndIndex
Step 2: Define pages and classes
DeliverablePg Index-C-C-Art-Data-DeliverablesList
TCase C-C-Art-Work-T
Step 3: Define Parameters
TID
pxInsIndexedKey
pxIndexCount
pxIndexPurpose
Step 4; Define Steps
1) Obj-Open StepPage = TCase
OpenClass = C-C-Art-Work-T
Lock = checked
ReleaseOnCommit = checked
.pyID = Param.TUID
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to later Step E
On Exception = E
2) Obj-Delete Step Page = TCase
3) call CommitData Step Page = TCase
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to later Step E
On Exception = E
4) Property-Set
Param.pxInsIndexedKey = ""
Param.pxIndexCount = ""
Param.pxIndexPurpose = ""
6) Obj-Open Step Page = DeliverablePage
OpenClass = Index-C-C-Art-Data-DeliverablesList
Lock = checked
ReleaseOnCommit = checked
.pxInsIndexedKey = Param.pxInsIndexedKey
.pxIndexCount = Param.pxIndexCount
.pxIndexPurpose = Param.pxIndexPurpose
Jump
When = StepStatusGood if true = Continue Whens if false = Jump to later Step E
On Exception = E
7) Obj-Delete DeliverablePg {Step Page}
8) call CommitData DeliverablePg {Step Page}
9) Label = E
Page-Remove
TCase
DeliverablePg
Thank you!! Will see you all in next blog post 😊.
Comments
Post a Comment