Discussion

Cloning the Cover and Cover Objects

HI
How can I clone existing Cover and Cover Objects into new one. Where is we can able to use copy option to copy the Cover and Covered objects in that only Cover gets copied [How to copy workobjects will give how to copy ,but cover only able to copy not covered objects], covered objects not gets copied,so is there any option available to Copy or Clone Cover and Covered Objects altogether
[Means need to copy with another Cover and Covered Objects with different Cover number with covered objects]
Advance Thanks
Regards

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
July 29, 2010 - 10:12am

We don't provide an out-of-the-box solution for this as of v6.1

August 4, 2010 - 6:28pm

We do that exact thing here.

1. Copy the Cover to a new page
2. Remove flow related properties from new cover
3. Call GenerateID to get a new cover ID (out of the box function)
4. update time, operator, Org, Unit, Division in new cover
5. Copy Work Items (new activity) loop through values in pxCoveredInsKeys.
6. Save New Cover
7. copy new cover to pyWorkPage
8. Save pyWorkPage

Copy work items:
1. Obj-Open-By-Handle using value from step 5 above.
2. Copy pyWorkPage to new item
3. Remove flow properties from new item
4. Call GenerateID to get new item ID
5. Save new item ID to New cover pxCoveredInsKeys value list
5. Save new item
6. Remove temp pages.

Make sure you completely understand your cover and cover items before starting to build this. And test the heck out of it. Particularly the 2nd, 3rd and 4th copies to make sure you are getting what you expect with subsequent copies.

Have Fun,
Stephen

May 27, 2013 - 8:34am

Hi Strong,

I have a requirement . I m having one cover with some let say 5 work objects in it . I want to remove some let say 2 work objects from the cover and need to place these 2 work object in a new cover and the 2 work object should be get deleted from the old cover . pls suggest some method to do this . either through case management or through activities.

September 6, 2016 - 4:56am

there is an issue that my cloned id opens always from the first step of the first flow