Can we say that all standard lookups/master-details/polymorphic fields follow a consistent naming convention across all standard objects? I'm talking about this pattern:
- field name = field relationship name + "Id"
Examples:
- field name = OwnerId/WhatId/ParentId/AccountId
- field relationship name = Owner/What/Parent/Account
So far I haven't come across a negative case but I'm not confident about it either. Basically I want to see if I can get the field name directly from the relationship name, with as little effort as possible. That means doing a describe call is something I'm obviously trying to avoid here.
Please note that this question is not seeking design advice. Thanks!
$ObjectType
directly on the visualforce page:{!$ObjectType.Opportunity.fields.AccountId.RelationshipName}
– Sergej Utko Apr 7 '16 at 8:22