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
DRobi83DRobi83 

Change Master record lookup on Master/Detail relationship after initial save via Visualforce

Hello

 

I am trying to create a visualforce page/button to have the ability to change the master record on a master detail related record, after the initial save

 

The standard interface does not allow for this to occur, however i know it can be achieved via API/intercept back into the database.

 

Does anyone have any ideas how i can achieve this is Visualforce? My thoughts would be to create a visualforce button, which pops up and then the user can select another record (name) to relate, and upon save, commits that back to the database and makes the change

 

Any ideas? Im really stuck? The package being used is a managed package (which i made, and since deployment, cannot make the core package change back to a standard lookup field from a master/detail lookup)


Regards

 

David