0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【DataModel】Get started with the Salesforce datamodel

Last updated at Posted at 2024-10-16

Introduction

Sharperlight also provides a datamodel for Salesforce, so this time I would like to create a simple report using that datamodel.

Salesforce is a cloud-based customer relationship management (CRM) software. Sharperlight uses a datamodel for Salesforce to interact with its API and synchronize cloud data with a locally prepared database, enabling reporting tailored to individual needs.

Downloading the Datamodel

The Salesforce datamodel can be downloaded from the Sharperlight website. Access it via the top menu by navigating to Resources -> Datamodels.
image.png
A list of datamodels developed and provided by Sharperlight will be displayed. From that list, we can download the datamodel for Salesforce.
image.png

Installing the Datamodel

From here on, I will assume that Sharperlight is already installed.

Close all Sharperlight applications, including the Sharperlight service. Launch the Sharperlight application menu and select the Datamodel Installer.
image.png

Once the Datamodel Installer is launched, use the "Add" button to include the datamodel we downloaded earlier.
image.png
image.png
Finish the installation by clicking the Finish button. At the same time, the datamodel will be compiled automatically.

Preparing the Database

Prepare an empty database in Microsoft SQL Server.
image.png

Connecting the Datamodel to the Database

Use the Client Setup in Sharperlight to define the connection between the Salesforce datamodel and the prepared database for synchronization.
image.png
In this case, database server authentication was used.
image.png
Finally, confirm the connection by clicking the Test button. Finish the Client Setup by clicking the OK button.

Configuring API Connection Information

Next, set up the connection information for Sharperlight to communicate with the Salesforce API.

First, ensure that API access is enabled on the Salesforce side. This will allow us to obtain key information such as the Consumer Key and Consumer Secret.
Using the Site Setup in Sharperlight, enter the obtained key information.
image.png

Select Salesforce from the product settings, and the properties to enter the key information will be displayed on the right side. It should look like this:
image.png
Once the settings are complete, save by clicking the Close button.

Starting the Synchronization

Now that the preparation for data synchronization with Salesforce is complete, let's start the synchronization by launching the Sharperlight service.

Starting the Sharperlight Service

Select Services from the Sharperlight application menu to launch it.
image.png

Alternatively, we can start the Sharperlight service from the Windows Services.
image.png

Using the Salesforce Synchronization Web Interface

From the Sharperlight application menu, select Solutions.
image.png

Once the solution is launched, double-click on Sharperlight SalesForce UI.
image.png

A page will appear in the browser to manage synchronization and other tasks.
image.png

Starting the Synchronization Process

From the management page's top menu, select System -> Sync Settings.

Click the Execute Sync Now button to start the synchronization.
image.png

Once the synchronization starts, the screen will switch to the Sync Stats page. After a while, we will see the processing history in the Process Progress list at the bottom of the screen.
image.png

As the synchronization process continues...
image.png

When the synchronization is complete, we will see a display like this:
image.png

Data Verification and Reporting

To verify the synchronized data, select Dashboard from the top menu of the management page. We should see the data displayed. Note that my Salesforce environment is a demo for development, so the data is limited.
image.png
This is a collection of reports prepared by Sharperlight, but we can create reports tailored to our needs using Sharperlight's publish queries or the Excel add-in.
image.png

Additionally, the synchronization process can be scheduled, allowing us to execute it at a specific time every day to keep the synchronized database up-to-date. In the web UI, we can specify the execution time here.
image.png

If we want to make more detailed settings, we can do so in the Sharperlight scheduler.
image.png

Conclusion

We have explored data synchronization and reporting using the Salesforce datamodel. Once we set up the data synchronization, we can leverage Sharperlight's powerful reporting capabilities to create reports tailored to our specific business needs.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?