Deep clone : Members to keep all

0
Hello,   I've been working on an application where the client wants to be able to view the whole life history of an object. Since this object can run trough multiple workflows I implemented an index management First iteration as index "A", second as index "B" and so on...   When creating the new index object I used the "Clone object" java action which worked just fine until I realised it also copies the "createdDate" member which is managed by the system and no way to overwrite it   Considering I'm using the createdDate member a lot as a sorting argument, that would conflict with my logic as the createdDate doesn't have the value it's supposed to have (which is supposed to be the date the new indexed object is created)   Looking trough this issue I saw a lot of post with every answer being "use Deep clone java action"   This brings another issue has my object has lots of members and relations   I wondered if there is a way to use Deep clone with a "all member" argument as members to keep since writing then all down would be time consuming and a source of potential error   Thank you for your time.
asked
1 answers
0

The most robust and future-proof solution is to manually copy all attributes and relations in a microflow. This is a pain once, but then you’re done and have full control.

I would recommend trying this. 

answered