Page with Model A, Model B.
Model A is first model with Id=id param condition.
Model B is on parent object of Model A, with field from another model condition pointing to the reference field on Model A.
I set only Model A to clone when clone & id parameters are present.
When I load the page with the clone=1 url parameter, Model A’s Id = clone_1, as expceted, but Model A’s master-detail reference field (call it Model_B__c) = clone_2… (and therefore the Id field of Model B is clone_2).
Unexpected?
I don’t want to clone Model B. I want the clone of Model A to be a new child of the same parent…
Thoughts?
Question
clone model without cloning parent?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.