Skip links

Connect FileMaker with Salesforce

FileMaker tips and instructions

Connect FileMaker with Salesforce

Salesforce is one of the world's leading CRM systems and offers companies a powerful platform for managing customer relationships, sales, marketing and service. FileMaker, in particular the gFM-Business ERP software based on it, offers a flexible environment for the development of customized database solutions, which is particularly attractive for small and medium-sized companies. With these solutions, you can also make data from Salesforce available in FileMaker on Apple Mac, Windows and mobile on iOS devices. By integrating FileMaker and gFM-Business with Salesforce, companies can combine the advantages of both platforms and optimize their business processes.

This article describes in detail how FileMaker and gFM-Business ERP can be connected to Salesforce, which technologies and methods are used and what advantages this integration offers.

1. basics of integration

Connecting FileMaker or gFM-Business ERP to Salesforce allows companies to seamlessly exchange and synchronize data between these systems. Salesforce is a cloud-based CRM platform that provides a comprehensive API suite for integration with other systems. FileMaker also offers interfaces for integration with external systems, including the FileMaker Data API and the ability to access external APIs via cURL requests.

The integration makes it possible to combine the flexibility and customizability of FileMaker with the extensive CRM functions of Salesforce. Customer data, orders, leads and sales activities can be synchronized between the two systems.

FileMaker ERP with us as an open license for a one-time purchase price

Request information
Professional ERP software

2. integration via the Salesforce REST API

The Salesforce REST API is one of the most common methods for integrating external systems with Salesforce. This API provides a standardized interface for communication between FileMaker/gFM Business and Salesforce. It enables the retrieval, creation, updating and deletion of data records in Salesforce and offers extensive possibilities for automating processes.

Steps for integration via the REST API

  • AuthenticationTo access Salesforce via the REST API, you need an access token. Salesforce uses the OAuth2 protocol for authentication, which ensures that data is accessed via a secure token.
  • Data retrieval and synchronizationOnce authentication is complete, you can use cURL requests in FileMaker to retrieve data such as customers, leads or opportunities from Salesforce. This data can then be further processed in FileMaker or gFM Business.
  • Data transfer to SalesforceThe REST API also makes it possible to create or update data records from FileMaker in Salesforce. For example, new customers or sales opportunities recorded in gFM Business can be transferred directly to Salesforce.

Example of a cURL request in FileMaker

Set variable [ $url ; Value: "https://your_instance.salesforce.com/services/data/vXX.0/sobjects/Account" ]
Set variable [ $access_token ; Value: "Your_Salesforce_Access_Token" ]
Set variable [ $headers ; value: "--header \"Authorization: Bearer " & $access_token & "\"" ]
Set variable [ $body ; Value: JSONSetElement ( "{}" ; ["Name" ; "New customer" ; JSONString] ) ]

Insert from URL [ Selection ; Dialog: Off ; Target: $response ; $url ; cURL options: $headers & " --request POST --data " & $body ]

This method allows you to dynamically transfer data between Salesforce and your FileMaker/gFM Business solution.

3. use of middleware solutions

Another option for integrating Salesforce with FileMaker and gFM-Business ERP is the use of middleware platforms such as Zapier, Integromat, or Claris Connect. These platforms make it possible to connect different systems without extensive programming and to exchange data between them automatically.

Advantages of middleware integration

  • Quick setupWith middleware platforms, companies can set up standardized integrations between Salesforce and FileMaker/gFM Business without the need for in-depth programming knowledge.
  • AutomationRecurring processes such as the synchronization of customer data or the creation of leads can be automated. For example, a middleware platform can be configured so that every time a new customer is created in FileMaker, it is automatically added in Salesforce.
  • FlexibilityMiddleware solutions often offer simple graphical user interfaces with which workflows can be visually created and customized.

4. ODBC connection between FileMaker and Salesforce

Another way to integrate Salesforce and FileMaker is to use ODBC (Open Database Connectivity). With ODBC, you can access the Salesforce database directly and execute SQL queries to transfer data between the systems in real time.

Advantages of ODBC integration

  • Real-time data accessODBC allows you to access real-time Salesforce data in FileMaker, which is especially useful if you want to create reports or dashboards in FileMaker that contain Salesforce data.
  • Data integrationWith ODBC, SQL queries can be used to insert data from Salesforce directly into FileMaker fields or to update FileMaker data in Salesforce.

5. data export and import via CSV/XML

If real-time data is not required, manual data export and import can also be a viable solution. Salesforce and FileMaker both support the export and import of CSV or XML files, which makes it possible to transfer data between the systems.

Advantages of CSV/XML data exchange

  • Simple implementationThis method does not require complex programming and can be easily implemented if data only occasionally needs to be synchronized between the systems.
  • FlexibilityData such as customer lists, orders or invoices can be exported and imported into the other system. For example, you can export customer information from Salesforce and import this data into gFM Business for further processing.

FileMaker Crash Course

Fast and effective FileMaker
learning in 20 chapters.

Participate free of charge

6. custom scripting for specialized integrations

In some cases, it may make sense to develop custom scripting solutions in FileMaker to meet specific Salesforce integration requirements. Custom scripting makes it possible to create customized workflows and functions that are tailored exactly to the needs of the company.

Example application for custom scripting

  • Lead managementA company could create a custom script that automatically transfers new leads from FileMaker to Salesforce, taking into account certain rules and conditions, such as lead status or sales territory.

Advantages of integrating FileMaker/gFM Business and Salesforce

  • Data consistencyIntegration means that customer data, orders and sales opportunities remain synchronized between the systems, ensuring a central and up-to-date database.
  • AutomationRecurring tasks such as the transfer of leads or customer information can be automated, which reduces the time required and minimizes errors.
  • FlexibilityBy using APIs, middleware or ODBC, you can design the integration flexibly and adapt it to the specific requirements of your company.
  • Real-time data accessWith methods such as the ODBC connection or the use of the REST API, companies can access data in real time and thus make better decisions based on up-to-date information.

FileMaker sample script for the Salesforce REST API

Below is an example of a FileMaker script that connects to the Salesforce REST API and sends a request. This example shows how to authenticate and then retrieve or send records from Salesforce.

Prerequisites:

  • Salesforce REST API URLThe URL you use to access Salesforce.
  • Salesforce Client ID and Client SecretYou will receive this after registering your application in Salesforce.
  • OAuth2 TokenOAuth2 is used for authentication to ensure secure access to Salesforce.

Example script for connecting FileMaker to Salesforce:

1. authentication and token retrieval

To establish a connection, you need an access token, which you receive from Salesforce via an OAuth2 request.

# Set the variables for Salesforce authentication
Set variable [ $client_id ; Value: "Your_Client_ID" ]
Set variable [ $client_secret ; Value: "Your_Client_Secret" ]
Set variable [ $username ; Value: "Your_Salesforce_username" ]
Set variable [ $password ; Value: "Your_Salesforce_Password" & "Your_Security_Token" ] # Password + Security Token combined
Set variable [ $auth_url ; Value: "https://login.salesforce.com/services/oauth2/token" ]

# Creating the cURL options for the authentication request
Set variable [ $postData ; Value:
"grant_type=password&client_id=" & $client_id &
"&client_secret=" & $client_secret &
"&username=" & $username &
"&password=" & $password ]

# Send authentication request to Salesforce
Insert from URL [ Selection ; Dialog: Off ; $auth_response ; $auth_url ; cURL options: "--request POST --data " & $postData ]

# Extract access token
Set variable [ $access_token ; Value: JSONGetElement ( $auth_response ; "access_token" ) ]
Set variable [ $instance_url ; Value: JSONGetElement ( $auth_response ; "instance_url" ) ]

Once you have received the Access Token, you can use it to access the Salesforce API.

2. retrieve data from Salesforce
In this example, we retrieve a list of accounts (customers) from Salesforce.

# Set the URL for the API request
Set variable [ $api_url ; Value: $instance_url & "/services/data/v50.0/sobjects/Account" ]

# Set the cURL options with the access token
Set variable [ $cURL_options ; Value:
"--header \"Authorization: Bearer " & $access_token & "\"¶" &
"--header \"Content-Type: application/json\"¶" &
"--header \"Accept: application/json\"" ]

# Send the GET request to Salesforce to retrieve account data
Insert from URL [ Selection ; Dialog: Off ; $response ; $api_url ; cURL-Options: $cURL_options ]

# Display the API response in the dialog (for example as JSON)
Set variable [ $formatted_response ; Value: JSONFormatElements( $response ) ]
Show custom dialog [ "API response" ; $formatted_response ]

3. processing the data in FileMaker

You can now process the data further and insert it into your FileMaker database.

# Example: Extract the first account name from the JSON response
Set variable [ $account_name ; Value: JSONGetElement ( $response ; "records[0].Name" ) ]

# Save the account name in a FileMaker field
Set field value [ Customers::Name ; $account_name ]

Explanation of the script

  • AuthenticationYou send an OAuth2 request to Salesforce to obtain an access token. This token is used in all subsequent requests to authenticate Salesforce data.
  • Data retrievalWith the Access Token, you send a GET request to Salesforce to retrieve account data. The response is returned in JSON format.
  • Data processingThe retrieved data is saved in FileMaker. In this example, the first account name is extracted and inserted into a FileMaker field.

Adjustments:

  • EndpointsYou can change the endpoints to access other objects such as leads, opportunities or user-defined objects.
  • Error handlingIt is advisable to add error queries to ensure that the process remains smooth in the event of incorrect queries.
  • Other fieldsYou can extract additional fields and save them in FileMaker, depending on your requirements.

RESTful API with gFM-Business ERP and FileMaker Server

More information
Professional ERP software

Frequently asked questions about FileMaker and Salesforce

  • How can I connect FileMaker with Salesforce CRM?
    • To connect FileMaker to Salesforce CRM, use the Salesforce REST API. You can create FileMaker scripts that send API requests to Salesforce to retrieve or update data such as leads, contacts, accounts or opportunities.
  • What do I need to integrate Salesforce with FileMaker?
    • You need Salesforce API access data such as the client ID, client secret, user name, password and a security token to send API requests from FileMaker to Salesforce. You will receive this data after registering your app in Salesforce.
  • What data can I synchronize between FileMaker and Salesforce?
    • You can synchronize many different types of data, including leads, contacts, accounts, opportunities and campaigns. This data can either be imported from Salesforce into FileMaker or transferred from FileMaker to Salesforce.
  • How do I set up API communication between FileMaker and Salesforce?
    • API communication takes place via HTTP requests. In FileMaker, use the "Insert from URL" command to send requests to the Salesforce REST API. You transmit the API credentials and JSON data to send or retrieve information to Salesforce.
  • Can I synchronize data in real time between FileMaker and Salesforce?
    • Yes, real-time synchronization is possible by making regular API calls from FileMaker to Salesforce. FileMaker can then automatically retrieve data from Salesforce or send updated records to Salesforce immediately.
  • Which authentication methods does Salesforce use for the API connection?
    • Salesforce uses OAuth 2.0 authentication. You must register an app in Salesforce to obtain a client ID and a secret. FileMaker then uses these credentials to obtain access tokens for API communication.
  • Can I import Salesforce leads into FileMaker?
    • Yes, you can import leads from Salesforce into your FileMaker database via the API. By making a GET request to the Salesforce leads endpoint, you will receive the corresponding data, which you can process and save in FileMaker.
  • How can I upload FileMaker data to Salesforce?
    • Data from FileMaker can be transferred to Salesforce via a POST request. For example, you can send new contacts or opportunities from FileMaker to Salesforce by transferring the corresponding data in a JSON format to the Salesforce API.
  • Can I create Salesforce reports in FileMaker?
    • Yes, you can import data from Salesforce into FileMaker and create reports there using FileMaker tools. By regularly synchronizing with Salesforce, you can incorporate up-to-date data on leads, contacts and opportunities into your FileMaker reports.
  • How do I handle API limits in the Salesforce integration?
    • Salesforce has API limits that restrict the number of daily API calls. You should therefore ensure that your FileMaker scripts optimize API calls and only send them when necessary. You can also catch API errors and adjust the requests accordingly.
  • What are the benefits of integrating FileMaker with Salesforce?
    • The integration makes it possible to combine data from Salesforce CRM with the flexibility of FileMaker. You can create custom workflows that synchronize your data and work seamlessly between the two platforms, improving efficiency and productivity.

Summary

The integration of FileMaker and the gFM Business ERP software with Salesforce offers companies numerous opportunities to optimize their business processes and automate the data flow between the systems. Whether via the REST API, ODBC or middleware solutions, there are many ways to connect these two powerful platforms. Choosing the right method depends on the specific needs of your business, but will always offer benefits through better data integration, increased efficiency and seamless collaboration between departments.

The FileMaker sample script shows how you can connect a FileMaker solution to Salesforce via REST API. The combination of both systems offers numerous possibilities for automating and optimizing business processes by synchronizing customer data, leads and other important information between FileMaker and Salesforce.

Share this page:

ERP software as flexible as your company.
We will be happy to advise you.

Customizable ERP software for Mac, Windows and iOS.

You are here: Efficient integration: Connecting FileMaker and Salesforce