Summer '13 has a long awaited feature of mine - Cross-Object Owner Formulas. As a developer, I can't count the number of times that I have written a trigger on objects for clients to populate a custom user lookup so they could use it in formula fields. Almost every sObject has the owner field but it's polymorphic, meaning it can point to a queue or user. This presented Salesforce.com with a problem in their data model using formulas. For instance, if Salesforce.com allowed you to reference Owner.FirstName and the owner was a queue, you would receive a runtime exception. Now there is native support for using cross-object formulas for all Owner fields. The syntax is slightly different than normal. For instance, the syntax to show a custom field from the User object would be Owner:User.MyCustomField__c. You can also determine if the record is owned by a queue in a validation rule ISBLANK(Owner:User.Id).
Subscribe to:
Post Comments (Atom)
Tips on passing Salesforce AI Associate Certification
🌟 Motivation to Pursue the Salesforce AI Associate Certification 🌟 The world of technology is in a state of perpetual evolution, and on...
-
Hi Coders, I thought this might be handy so thought of sharing this . It will create a random password with specified length publi...
-
Motivation behind this Since Salesforce introduces Lightning Web components the code standard and way of doing things changed in Salesforce...
-
Hello All, You might be aware that there are certain events like toast message only works in lightning context. Which means they do...
No comments:
Post a Comment