Timeline for SOQL Alias a column
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 8:11 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 16, 2019 at 20:02 | comment | added | Alan Morey |
@RaphaelD You need to use SObject.get() to access the aliased label. e.g String label = (String) opp.get('BillingCountryLabel')
|
|
Dec 16, 2019 at 12:28 | comment | added | Raphael D | I did the same querry but I am not able to access to Opportunity.BillingCountryLabel | |
Sep 16, 2019 at 21:01 | comment | added | Jeremy A. West | Only picklist fields, field history, or platform entity fields (or Record Type Name, Description in the SELECT list) support translation. =( | |
May 3, 2018 at 11:58 | comment | added | Charles T |
Interestingly the toLabel(field) alias syntax still allows you to return the usual SObject type back instead of AggregateQuery . The label data is only accessible via .get('fieldName') though of course.
|
|
Oct 4, 2017 at 22:49 | history | answered | Alan Morey | CC BY-SA 3.0 |