
1 risposta
Typically the relationship name is just the field name with __c replaced with __r. You can get the relationship name from the MetadataAPI [1] or by using the describe on the field [2].[1] https://developer.salesforce.com/blogs/developer-relations/2015/02/using-metadata-api-describe-objects.html[2] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_fields_describe.htm⌗apex_Schema_DescribeFieldResult_getRelationshipName