- Print
- PDF
In Lasernet BC Connector, you can specify your own email body and subject in different languages and use placeholders as variable fields/words in your email template to personalize the email for your customer or vendor.
Placeholders
To set the email templates, you will first need to specify your placeholders. Placeholders are fields from a table that you want to use in your email template, such as Customer Name, Document Number, or Username. Placeholders provide only one record rather than multiple. For example, you can use fields from Header tables rather than Lines. If you are looking for a date from a Line, you can select an option to receive either the first or final record. This means that you still only receive one record/field that you can use within your email templates.


To successfully use placeholders, follow these steps:
Locate and Open Placeholder Sets.
If no records appear, click the Suggest Placeholders button on the top menu.

Select a record that matches the report you wish to customize for the email subject and body. SALESHEADER is used for many reports, such as Salesorder, PickInstruction, Workorder, Proforma, and Draft Invoice.

On the top menu, click Manage and then Edit.

The top table (Sales Header) has already been added to the Tables section.
If you need to use data from Sales Header, add it to the table. Go to step 13.
If you need to use data as variable fields in your email subject or body, click Manage and then Add from the Tables section.

On the new record, click the ... (three dots) button in the Table No. column.

Select the table from the list. You can use the search function on the top menu to locate it.

The next step is to create a connection between two tables. The key must be unique to filter the exact record and not retrieve too many records. If the key fields have already been identified for the table added, it is only necessary to define the Field No or Filter value on the header table.
Change the Filter Type to Filter String.

There are three Filter Type options:
Field Value: Select a Field from a table
Filter String: Type in a manual Filter
Filter String (Placeholders): Use a System Field as Filter
With the Field No./Filter Value column, click the ... (three dots) button.
Select Current User Security ID from the list and click OK. Then, filter the BC users for the email.


Add the fields from the User Table by clicking Manage, then Add. These buttons are located under the Entries section.

On the new record, click the ... (three dots) button in the Field No. column.

Select the field that you wish to use in your email template.

Continue to add all the fields you want to use from the User Table. Once you are finished, close the Placeholder Set form.
In the overview you can see all the fields from the set.

Email Templates
The next step is to create your email template. You can use and import an HTML email or create your own with our tool. You can also ensure that customers and vendors get the correct email in their desired language.
Locate and open Email Templates. If you do not see any records, click the Suggest Email Templates button on the top menu.
(8).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
You have the option to either select a record from the list or create your own by clicking Modify or New on the top menu.
(7).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
We have created an email template that includes all languages. The default language is English. To change it, select the desired report and choose Modify.
If you wish to add a new language, click New at the bottom of the dropdown menu.
(8).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
In this guide, we choose to create a new record. To do so, click New on the top menu bar.
(8).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
From the Document Type dropdown list, select Sales Order.
(7).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
This guide will use the Danish language as an example. To produce a Danish language email, type DAN in the Language Code column and fill out the Name and Description as well. Select the Active checkbox.
(6).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
On the top menu, click Modify.
(6).png?sv=2022-11-02&spr=https&st=2025-03-01T06%3A05%3A03Z&se=2025-03-01T06%3A15%3A03Z&sr=c&sp=r&sig=UpesM63Mz8xn1WaHU3f16SmxRhbaBuFjRJ4FDy1LsOU%3D)
Define a Placeholder Set by clicking SALESHEADER within the Placeholder Set Code.

The Placeholder Fields should now appear at the bottom of the screen.

Enter the text for the email subject.

If you require a field like the document number, select it from the Placeholders list and then click the Placeholder to Subject button.

Enter the email content and add the placeholders to the template. To add a placeholder, select the placeholder at the bottom of the screen and then click the Place to Body button.

Close the email template form and apply the same process to the other languages you want to use.

In this example, an email template has been created for Danish customers. Customers using different language codes will receive an English language email, as this is the default setting.
