Hello,
I have a need of adding a Contact lookup field on Contact entity as Updated By. I need to capture Contact record updated by if it updates it's own email or phone. It works fine if contact is updated by on other contact. But it fails with an error "Creating this parental association would create a loop in this entity hierarchy", when it updates its own information (email and phone). I know it is OOB restriction added for hierarchy view feature. It is something like self-referencing. Any thoughts how to get rid of this restriction?
*This post is locked for comments
Vijay,
Refer to the links below for more information...
Kokulan - Your workaround sounds like quite possible. But not ideal. Anyway, thanks for the idea.
Pavan - Even it is not possible with Referential relationship behavior. I know it is not possible self-reference will all types of relationship behavior.
Hi
You will not be able to set the Updated by to be the same contact.
One workaround to this limitation would be to create a common or fixed contact record, you could call it: Same Person / Self or something along the line
Whenever you have a scenario of the same contact performing the update, just set the Updated By to be Same Person / Self
Hi Vijay,
If the entity relationship behavior is defined as Parental it is not possible for a record to reference itself because this would create a circular reference.
docs.microsoft.com/.../customize-entity-relationship-metadata
Instead you can easily use the OOB Modified By field for Updated By in the Contact for your requirement...
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156