function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LameDeeLameDee 

dynamic translations

We have enabled the Country and State Pick lists for our org and added the required translations.
We also have got a scheduled Apex job that retrieves records and generate documnents for our clients (across the world).  Unfortunately all the country and state values are retrieved in the user settings of the running user.  This has got the undesired effect of rendering an address on the letter partially in the language it was captured (street and city fields) and partially in the language of the running user (Country and State).
So we end up with addresses that looks like 
Tullastraße 12345
Köln
99999
Germany
Instead of 
 
Tullastraße 12345
Köln
99999
Deutschland
Oh - the records we generate is a mixed bag, different countries.
Question: 
Is there a way to retrieved the country and state values for a record (Account/Contact/Lead/etc) based on the "native" langueg for the record?  We do have the preferred language available as a custom field on each record.  Or is there a formula/apex we can use to set the "native" counrty and state values for the record I.e. Account.BillingCountry.getValue(DE)?

Suggestions will be appreciated!  
    
 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi LameDee,

May I request you please refer the below link for reference. Let us know if it helps.

Thanks
Rahul Kumar
LameDeeLameDee
Hi Rahul,
Nope, that does not answer the question.

Thanks.