Recently, I came across one of requirement where client wanted to have a custom lookup field on User object. This lookup will be on User. Based upon certain criteria, value of this field will go to Manager field. They didn't want update of Manager, but on the basis of some business use case.
First impression to me was it will be straight forward to create a lookup on user and then in trigger will check for business use case and update Manager field accordingly. However, when I proceed with creating a look on User object, I couldn't find an option 'Lookup Relationship' on first screen of 'New Custom Field'.
In fact, I saw only available option 'Hierarchical Relationship' for creating any sort of relationship. I know most of us know about it. But you can't defer on my opinion that we tend to forget these small stuff. Since, on user you can't have any direct relationship, but only user. Salesforce gives you special relationship data type on User object, 'Hierarchical Relationship'. It Creates a hierarchical lookup relationship between users.
"It allows users to use a lookup field to associate one user with another that does not directly or indirectly refer to itself. For example, you can create a custom hierarchical relationship field to store each user's direct manager."
cool stuff...Thanks for sharing :)
ReplyDeleteNice
ReplyDeleteThanks
ReplyDeletenot srraight out of help....really unique
ReplyDeleteI am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
ReplyDeleteDegree
ReplyDeleteGood Blog with the required information and information are very effective..!!
Tally Course in Chennai
CCNA Course in Chennai
SEO Training in Chennai
Hadoop Training in Chennai
Cloud Computing Training in Chennai
Blue Prism Training in Chennai