If a primary object on a custom report type is a custom object, what happens if the custom object is deleted?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
If a primary object on a custom report type is a custom object, and the custom object is deleted, the behavior will depend on whether or not any reports are associated with the custom report type.
If there are no reports associated with the custom report type, the custom report type will not be deleted automatically when the custom object is deleted. Instead, the custom report type will still exist, but it will be unusable until a new primary object is selected.
If there are reports associated with the custom report type, the behavior will again depend on whether or not the reports have been deleted. If there are no reports associated with the custom report type, the behavior will be the same as described above, and the custom report type will not be deleted automatically.
However, if there are reports associated with the custom report type, and the custom object is deleted, then the custom report type and any reports created from it will be automatically deleted as well. This is because the primary object of the custom report type no longer exists, and any reports based on the custom report type would not be valid.
It is important to note that deleting a custom object can have significant impacts on other aspects of a Salesforce org beyond just custom report types and reports. Therefore, it is recommended that caution be exercised when deleting custom objects, and that any potential impacts be thoroughly assessed before proceeding.