01 Getting Started

This tutorial will explore adding Salesforce Merge Fields to a Word document.

02 Insert a Salesforce Field

1. Start with a blank page in Word and click the Insert/Edit field button on the Word banner. The Insert Field screen opens.
Insert/Edit table
You can select different sources for the fields:
  • Salesforce
  • System fields: You can select the Now timestamp or the user's IP address.
  • Titan Web project or Submission: These will be discussed in later lessons.
In this lesson, we look at the Salesforce (default) option.
1. Select any Salesforce standard or custom object from the drop-down list. In this lesson, we selected “Account."
2. Add a description of your query in the Comment field.
3. Use the drop-down list to select the field. In this lesson, we selected “Account Name."
4. Click the Insert button.
insert field
The merge field is added to the Word document. The text between the field element markers is placeholder text that you can edit or delete.
Inserted field

03 Insert a Date Field

Let's insert a date field.
1. Click the Insert/Edit field button on the Word banner. The Insert Field screen opens.
2. Use the drop-down list to select the object we just created. The Comment field is filled automatically by default
3. Use the drop-down list to select the field. In this lesson, we selected “Created Date."
4. Click the Configure format button. The Configure field format screen opens. The options on this screen vary according to the data type you selected.
Insert fields
5. Use the drop-down list to select a predefined format, for instance, September 4, 1986, and click the Apply button.
Configure field format> select predefined format
6. Click the Insert button on the Insert Field screen. The merge field is added to the Word document.
Insert field

04 Insert a Currency Field

Now we will insert a currency field:
1. Click the Insert/Edit field button on the Word banner. The Insert Field screen opens.
2. Use the drop-down list to select the object we just created. The Comment field is filled automatically by default.
3. Use the drop-down list to select the field. In this lesson, we selected "Annual Revenue."
4. Click the Configure format button. The Configure field format screen opens. The options on this screen vary according to the data type you selected.
Insert salesforce field
5. Use the drop-down list to select a predefined format, for instance, Number to Word or $###,###,##.
  • Alternatively, you can add leading text (for instance, a currency symbol), digit or decimal points, or decimal count.
6. Click the Apply button.
select predefined format
7. Click the Insert button on the Insert Field screen. The merge field is added to the Word document.
Merge field

05 Configure the Format for the Account Name Field

Let's configure a format for the Account Name field.
1. Click in the Account Name field and click the Insert/Edit field button.
Configure format
2. Click the Configure format button. The Configure field format screen opens. The options on this screen vary according to the data type you selected.
3. Use the drop-down list to select a format, for instance, lower, upper case, or inline HTML. These options will be discussed in subsequent lessons.
4. Click the Apply button.
Select predefined format
5. Click the Save button on the Insert Field screen.
This was a summary of how to insert a Salesforce merge field.

06 Got Feedback?

Additional Resources