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
Chaudhary AdityaChaudhary Aditya 

Where all is the object referenced?

I am required to add a logic around a custom object(On create). There are multiple process-builder processes, trigger, flow, workflow operating on this object.  

I need to document all the references to come up with an ideal component(existing/new) to add my logic. 

Is there a way in the User Interface,SOQL/API or something else - to figure out all the components - this custom object may be refernced in(Process, Flow, Workflow, Trigger, Apex classes)? 

Is this something very basic?  What am I missing?
AnudeepAnudeep (Salesforce Developers) 
You can use the following SOQL query to get that information 
Select MetadataComponentId,MetadataComponentName,RefMetadataComponentName,RefMetadataComponentId 
from MetadataComponentDependency 
where MetadataComponentId = '01q0J000000kCzI'
You can also use Rest API or Salesforce CLI for making the queries.

See this blog post to learn more

Let me know if this helps. If it does, please mark this answer as Best. It may help others in the community. Thank You!