New answers tagged

2

As Derek mentioned, MailingCountry is part of the MailingAddress compound field on the Contact object. So it should exist. Another possible explanation for your issue is that you don't have State and Country/Territory Picklists enabled in your org. Once you have that enabled, the first block of code in the blog entry you linked should work, although it's ...


2

The MailingAddress and ShippingAddress fields are special compound fields. They're read-only, and hide the fact that there are indeed separate fields backing them. So while you won't find MailingCountry explicitly listed as a field on the Account or Contact object, the field does in fact exist. This information is also corroborated by the SOAP API ...


Top 50 recent answers are included