Creating Custom Tokens for Email Content

Objective

After completing this lesson, you will be able to create custom tokens for email subjects and message content

Custom Email Tokens Using Document Generation

Email tokens automatically populate information in an email once the email is triggered in the onboarding process. There are only a few tokens available for email templates, but you can add more tokens by creating custom tokens.

There are two steps involved in creating custom email tokens for email templates:

  1. Create a new document template with the name EMAIL_CUSTOM_TOKEN_MAPPING using Document Generation — Manage Document Template.
  2. Map the fields on the document template that represent the email tokens. This is done using Document Generation — Manage Document Template Mapping.

In these steps, you are creating a document template that contains a list of email tokens.

Create Custom Tokens in Email Templates

Business Example

The organization wants to add more dynamic information to the email notifications sent during new hire onboarding processes. This creates more personalized messages for all employees involved in the onboarding process.

In this exercise, you will create custom tokens that will be used on email templates.

Steps

  1. In the instance, navigate to Document Generation — Manage Document Template using the Action Search box.

  2. In the Create New dropdown list, search for and select Document Generation Template.

  3. For the Template ID, enter EMAIL_CUSTOM_TOKEN_MAPPING.

  4. Enter values for all mandatory fields and the relevant optional fields. For the Template Content field, enter the names of the custom tokens, separated by a line of text. We recommend using a prefix such as CT_ on the name for each custom token to make it easy to find in the list of tokens on an email template.

  5. To save the document template, choose Save.

  6. In the Action Search box, search for Document Generation — Manage Document Template Mapping.

  7. Map each of the custom tokens you have named in the content of EMAIL_CUSTOM_TOKEN_MAPPING to the defined fields in SAP SuccessFactors Onboarding.

  8. To save the mapping, choose Save.

Result

You can use the new custom tokens you have created in any email template in Email Services.

Log in to track your progress & complete quizzes