Calling email body translations in a process

Before you call translations for an email body, perform these steps:

  • Verify the locale of the recipient

    See Viewing the locale of an actor.

    Depending on the translation function you will use, you may want to view the actor record to ensure that the locale of the recipient that your content is translated in the correct locale.

    For example, you will send a translated email to an actor called Infor whose iso locale is fr_FR for French.

  • Translate the email content

    See Translating a phrase.

    Based on the locale of the recipient, you must configure a translation for the content of the email body.

    For example, a translated phrase or content is in a translation record called Translated_Email.

  1. Open Infor Process Designer and create a new Infor Process File.
  2. Create a Start Node and define a variable for the email body content, emailBody.
    1. Select the Start Node.
    2. On the Process Variables tab, click the Add (+) button.
    3. In the Variable Expressions Builder window, specify this information:
      Variable name
      Specify a name for a variable for the email body content, for example, emailBody.
      Variable type
      Select String.
    4. Click OK.
  3. Create an Assign Node and assign the value for the emailBody.
    1. Select the Assign Node.
    2. On the Assignments tab, click the Add (+) button.
    3. In the Variable Assignment window, specify this information:
      Variable name
      Select variable for the email body content, for example, emailBody.
      Variable value
      Specify a translation function to assign as a value to the variable.

      See Translation functions.

      For example, translation.translateForUser("Translated_Email", "Infor").

      The content of Translated_Email will be translated based on the locale of the Infor actor, which is French, and assigned as the value of emailBody.

    4. Click OK.
  4. Create an Email Node and call the emailBody variable.
    1. Select the Email Node.
    2. On the Email tab, specify this information:
      To
      Specify the email address of the recipient.
      From
      Specify the email address from which the email will be sent.
      Subject
      Specify the subject of the email.
      HTML content
      Select this option.
      (Email body)
      Specify the name of the variable for the email body content in this format: <!varname>.

      For example, <!emailbody>.

    3. Click OK.
  5. To translate the email content into different locales and send to different recipients, create and configure new Assign and Email nodes as needed.