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
Swati TaunkSwati Taunk 

Handle different languages while parsing email from inbound email service

I have implemented an email service where I parse the email and create an opportunity record. It works perfect.

Now I have an issue in the following scenario:

Scenario:
email is sent from email address A to B,
from B it is forwarded to C (SF email address).
When an email is sent from address B, It is assumed as it has been forwarded by some other email address, I need that original email address.
So in that case I search for keywords ‘From’ , ‘To’, etc to find the actual email address (i.e. A). This also works perfectly fine.

The issue is:
the emails are sent from around the globe. So in some emails, the language is other that English.
For ex:
———- Weitergeleitete Nachricht ———-
Datum:
Betreff:
Absender:
An:

 

instead of


———- Forwarded message ———-
date:
subject:
sender:
to:

 

 

Please suggest how can I handle different languages?

GunnarGunnar

You will have to do that on your own.

 

Salesforce does not have a language translation component.

 

Metadata, salesforce translate that because it's static.

 

Content in an email from some user in Hamburg? So someone in Tokyo or Paris can read it? Not happening.

 

Try https://developers.google.com/translate/