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
Suhel CruiseSuhel Cruise 

Is it possible to have Circular dependency between Records in Salesforce ?

Salesforce has many relationship types. This reference (https://developer.salesforce.com/forums/?id=906F0000000913hIAA) suggests that circular dependency will not be supported for Records within same Object. However, self-relationships as documented here (https://help.salesforce.com/articleView?id=sf.relationships_considerations.htm&type=5) suggests that it is possible. So the question is, is such circular dependency possible ? Also, is circular dependency possible across Records of different Objects (especially with Custom Objects) ?
Best Answer chosen by Suhel Cruise
AbhishekAbhishek (Salesforce Developers) 
Check this,

https://salesforce.stackexchange.com/questions/223385/cyclic-dependency-between-objects

If you need official confirmation please reach salesforce support.


If it helps you and close your query by marking it as the Best answer so that it can help others in the future.

Thanks.
 

All Answers

AbhishekAbhishek (Salesforce Developers) 
Check this,

https://salesforce.stackexchange.com/questions/223385/cyclic-dependency-between-objects

If you need official confirmation please reach salesforce support.


If it helps you and close your query by marking it as the Best answer so that it can help others in the future.

Thanks.
 
This was selected as the best answer
Suhel CruiseSuhel Cruise
The link you provided suggests that it is possible. Thanks for this. I also tried creating 2 Lookup relationship between 2 custom Objects and I was able to because Lookup relations are not strict as compared to Master-Detail relationship.

However, I am now wondering if there can by a cycle between Records of same object. i.e. can Hierarchical relationship be cyclic ?