You need to sign in to do that
Don't have an account?
Sdfc dev
Translated related list label using apex
Hi
I overrode a related list label using translation workbench. How do i get the translated related list label using apex?
I tried with Schema.getChildRelationships but no luck.
Thanks in advance.
You can do like this
Schema.DescribeSObjectResult descForSelObj = Schema.getGlobalDescribe().get(objectName).getDescribe();
List<Schema.ChildRelationship> childObjects = descForSelObj.getChildRelationships();
for(Schema.ChildRelationship childObj : childObjects) {
System.debug('======='+childObj.getRelationshipName());
}
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
Hi Souvik,
Thanks for your reply.
I think you misunderstood my usecase, I am trying to get the translated related list LABEL in apex instead of relationship API name.
Thanks,
Check this
http://salesforce.stackexchange.com/questions/8565/can-i-query-the-translated-value-and-return-the-key-in-translation-workbench