• LameDee
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
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!  
    
 
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!