Question
Pegasystems Inc.
IN
Last activity: 21 Oct 2019 3:32 EDT
How to Get Parent Case ID to Child case ID
I have a requirement where parent id is A-150 , then if i create child case it should be B-150-1. similarly if parent id is A-151 then child should be B-151-1,B-151-2 ,so on.
I tried to set pyworkIDprefix in pydefault of child case , but unable to get the parent id at that instance.
pyworkIDPrefix= "B-"+ substring(pyWorkCover.pyID,2)+"-"
but when i run its showing child case as B--1,B--2 so on only.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Swedbank AB
SE
Hi,
While creating child case parent case data will be available in pyWorkPage itself and current child case will be creating using Iteratepage. You just change your expression with pyWorkPage.pyID it will work as expected.
Thanks,
Deva.
Pegasystems Inc.
FR
Hello,
Have you tried tracing it? Are you sure pyWorkCover.pyID is available on clipboard at this specific moment when calling GenerateID activity for the child?
-
MUDAVATH Naresh
Pegasystems Inc.
IN
im not calling GenerateID activity in my child.
Pegasystems Inc.
FR
Well the question remains the same are you sure that Cover page is accessible?
Pegasystems Inc.
IN
cover page is not available at that time. I have tried in cssa exercise cloud link, but it wont set id for child . Is there any way by which we can get parent ID?
Accepted Solution
Swedbank AB
SE
Hi,
While creating child case parent case data will be available in pyWorkPage itself and current child case will be creating using Iteratepage. You just change your expression with pyWorkPage.pyID it will work as expected.
Thanks,
Deva.
-
Anoop Krishna Rafael Cuevas Mijangos
DHL IT services
IN
Will this really works...??how a pyworkpage holds two different pyID in one parent class(Org-DIV-WORK-TestParentCase).
Can you please specific on above statement??
Swedbank AB
SE
It will work. As i mentioned child creation time child case primary page is Iteratepage_xxx and parent case data present in pyWorkPage. you can see this in tracer as well.
DHL IT services
IN
Yes it's working
-
Pendem Penchala Rao satya palnati Anoop Krishna