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
KotiSFDCKotiSFDC 

how to convert master detail to lookup if we have roll-up-summery filed to master object.

sfdcMonkey.comsfdcMonkey.com
hi Koti, 
You can convert a master-detail relationship to a lookup relationship as long as no roll-up summary fields exist on the master object. 

Thanks 
let us know if it helps you
KotiSFDCKotiSFDC
Thank you Piyush, Can u plz expline why?
sfdcMonkey.comsfdcMonkey.com
Hi, it's because roll up summary fields only support with master details relationship NOT with lookup relationship, that is why when you convert master details to lookup then system will check that there is no roll up summery fields existe on parenet object, this is standard salesforce process dear. There is a free tool for declarative rollup summaried between non MD relationships created by Andrew Fawcett that is available at AppExchange [https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B45gWEAR (https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B45gWEAR" target="_blank)]

i hope it helps you.
   Let me inform if it helps you and kindly mark it best answer if it helps you 
thanks 
sfdcMonkey.comsfdcMonkey.com
hi KotiSFDC,
Kindly close your answer by choosing by answer so it will make proper soltions for others in future
thanks