function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lee.boonstralee.boonstra 

cloning references

I am working on a cloning script, which is cloning next to the sObject also relatedlist. But there is a strange thing happening…

On my dev account this script get dynamically all the fields of the opportunity object and pulls this in a string,
Queries the values and create a new object with this.
It also clones automaticly the related list: History and Order Tasks.
I thought: "seems logic, cause these are just stored references which are cloned".

Now the strange thing is, when I use the same script on the production environment (enterprise) (with more different fieldnames in opportunity) It clones all the fields but without the relatedlist references for History and Order Tasks.

I'm very curious why it works different in my dev environment. Does anyone has a solution?
Is there a setting somewhere. Or has this something to do with owner rights???

Thanks in advance,
Lee Boonstra

Message Edited by lee.boonstra on 10-04-2007 03:06 PM