DeepClone - 2 Questions

1
I am trying to set up DeepClone and have 2 questions: In membersToSkip and membersToKeep, how to I format these string arguments?  I have a number of members for each of these arguments, should they be comma separated?  space separated?  Formatted some other way?  ***Edit*** I found this post that indicates members should be separated by commas: https://community.mendix.com/link/questions/5322 How do I set up DeepClone so that it doesn't try to clone System.changedBy?  I have tried a few different ways, and still get an error message that says, "Write access denied for member 'System.changedBy' of object 'ModuleName.ObjectName' Thanks for any pointers! ***Edit 2 *** Thanks for chiming in Rob.  What I found I had to do was put System.changedBy and System.owner into the membersToSkip list.  This may be because my source and target objects had different owners (and were last changed by different users).  I am not sure if the Java action expects the objects to be owned and last changed by the same user.
asked
1 answers
1

Hi Mike,

  Looking at the java code, it appears the the memberstoskip should be a comma separated list. I also see in the code that it automatically adds the createdDate and changedDate objects:

List<String> toskip = Arrays.asList((membersToSkip + ",createdDate,changedDate").split(","));

 So in a perfect world, you should not need to specify that createdDate and changedDate should not be changed.  I suspect that changedBy should be added to your memberstoskip list as 'yourlist + ',changedby'

 Let me know if that works for you,

Rob

 

answered