Let’s see how easy it is to create a Schedule to automatically send merged reports to business contacts.
Ins this example we’ll setup a Schedule to deliver a weekly Invoice Statement to our customers.
1. Design the Invoice Statement report
The query for the report looks like this:
Note that we included a parameter to show only records for last week.
The report design looks like this:
Note that we grouped the report by customer.
The report in preview looks like this:
Note that all records are shown for last week.
2. Design the Merge Catalogue
It is important that the Merge Catalogue query has a unique key field to merge on.
And of course it also needs to hold an E-mail address.
In this case we’ll use the "Id_Customer field" as key merge field.
3. Create the Schedule
We recommend that you take a look at the DBxtra .NET Schedule Server Quick Start Guide.
Open the Schedule Server, select the project and click "New" on the menu bar.
Define all settings.
Here we set the schedule to be running ever week on Monday.
3.1 Create a new Job
Click "Add Job".
Select "E-mail - Merge DBxtra Object".
Enter a Job description.
Click "Settings".
Select the Merge Catalogue
Important!
The Marge Catalogue Settings will by default be taken form the Project Configuration.
If you haven’t configured it yet you can enter required settings manually.
Select the DBxtra object as Merge Catalogue. (The one we designed in step 2.)
Very Important!
Select the "Key" field for to merge.
This field will tell DBxtra on which field to merge the report.
Also select the E-mail, Company and Contact field.
Define E-mail settings
Now that you’ve setup the Merge Catalogue you can assign contacts.
Click the "To" button.
Select all contacts to receive the E-mail merged report.
Select "Always pill all records from the merge Catalogue" if you want to send the E-mail to all contacts from the catalogue.
Select the merged report to be sent
Click "Attach".
Select the DBxtra report.
In this case we’ll select the report we designed in step 1.
Select a output format.
Optionally you can attach any other file and define if to run the report only if it holds any data.
Also select if to zip the report for smaller size.
If you want to add the date and hour to the file name - report - to be sent select "Add date to file name".
When finished click "Ok".
Select the object merge field.
This is the field on which DBxtra .NET will merge report data for each merge catalogue contact.
In this case we’ll select the field "Id_ Customer".
Write the subject and message of your E-mail.
You can enter merged fields into the subject and bodY by selecting and double clicking it from the right merge fields bar.
This way each of your customer will receive a personalized message.
You can send yourself an E-mail test to see how the E-mail will arrive.
When finished click "Ok."
Click "Save".
Learn about running the Schedule automatically.
Here is how your customer will receive the message:
And here is the merged report:
As you can see the contact receives the report only with data belonging to his company.
Learn more about the DBxtra .NET Schedule Server:
Quick Start Guide
Help file