Table of Contents
Connecting to Traditional Databases
fSeries connects to traditional databases using ODBC or OLE. This includes connecting to sources such as Microsoft Access or Excel, using the Access Database Engine. Note that your database needs to be able to be reached from the fSeries sever location.
To create a new database connection, provide an alias, name, specify the connection type (ODBC or OLE), and add a connection string. A button is provided to allow you to choose from a number of examples, where all you need to do is provide the server location, database name, user ID and password. By default, all information is encrypted and held within the fSeries database, but on local installations of fSeries you can elect to contain the information in Environment Variables, or within the appsettings.json file.
We recommend making use of online resources such as connectionstrings.com to assist you in building connection strings to your data sources.
Finally, you can select the dialect of the database you are talking to, such as SQL Server, Oracle, Excel, and more.
Use the Test button as this helps confirm connectivity and displays any connection issues.
Connecting to an API
fSeries can connect to external REST/HTTP APIs as well as other fSeries API endpoints. Note that the API endpoint needs to be reachable from the fSeries server location (taking into account any outbound firewall, proxy, or network rules).
The Process
- Create a new API Data Source in fAdmin and give it a Name and unique Alias. (Remember that changing an Alias later may break anything already referring to it.)
- Enter the Location (base URL) of the API, for example
https://jsonplaceholder.typicode.comorhttps://api.example.com/v1. - Tick fSeries API if you are connecting to another fSeries API server; leave it unticked for standard third-party or general web APIs.
- Use the Test button to confirm connectivity and check for any errors before using the Data Source.
Tips & Troubleshooting
- Test against a known endpoint first: If you are verifying how fSeries handles responses or troubleshooting network access, start with a simple test endpoint such as
https://jsonplaceholder.typicode.combefore pointing at a live production API. - Check authentication and headers: If requests fail or return unauthorised errors, verify any required API keys, tokens, headers, or authentication settings and confirm the base URL and path are accurate.
Connecting to Fabric
fSeries connects to Fabric via the TDS protocol, like a standard ODBC to SQL database. Therefore, within fSeries you would set up a standard “Connection” type Data Source, using an ODBC connection string to your Fabric instance.
The Process
- Identify the SQL connection string, found in Fabric under the Settings section in your warehouse/lakehouse. It looks like <identifier>.datawarehouse.fabric.microsoft.com.
- Identify the database name (your warehouse/lakehouse name)
- For authentication Fabric requires Microsoft Entra ID; a client application ID and secret replaces the standard username/password in the connection string, so an App Registration is needed in Azure which will provide the ID and client secret. See below for creating an App Registration.
- Finally, in Fabric head to your admin portal > tenant settings, ensure service principals can access the Fabric API and then under the Fabric workspace use Manage Access > Add People or Groups > add the app registration as a member/contributor.
Gaining your Fabric client secret
- In the Azure Portal go to Entra ID
- From the menu options on the left go to Manage → App Registrations
- Click on your fSeries App Registration. Note your App Registration client ID, which becomes the User ID in your ODBC connection string.
- From the menu on the left go to Certificates & Secrets.
- If there aren’t any, click New Client Secret, enter a name such as “Fabric Connection” and chose a duration (such as a year), then click Add and on the next screen look for the “Value” column which contains the secret key – not the Secret ID column - and copy it to your clipboard. If there’s already a secret there, just copy the value to your clipboard.
Connecting to Dataverse / Dynamics
fSeries connects to Dataverse through one of two authentication methods - by configuring OAuth, or by using a Client Secret. Microsoft recommends using a Client Secret, which we will discuss here. This process involves creating an App Registration in Azure under Active Directory, and then adding an fSeries Application User to Dataverse.
Once configured, you can enter a connection string into a Dataverse/Dynamics type fSeries Data Source, and pull information from your source.
Creating an Azure App Registration
- Head to your Azure Active Directory App Registrations at https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps
- Click “New Registration”
- Enter a suitable name, such as “fSeries”
- The supported account type should be “Accounts in any organisational directory (Any Azure AD directory - Multitenant)”
- The Redirect URI is not needed, so click the Register button and copy the Application (client) ID into a notepad to keep it for later.
- Within your new registration, head to “Certificates & secrets” > Client secrets tab > “New client secret”
- Enter an optional description and set the expiry date for the secret. This date can be any time in the future.
- Once the secret has been created, immediately copy the client secret Value key into notepad. It will not be shown again so ensure it is copied safely.
- From the menu on the left, select “API Permissions” then “Add a permission”
- Select your Dataverse source or “Dynamics CRM”
- Within “Permissions” tick the “user_impersonation” option and then the “Add permissions” button.
Adding the fSeries Application User to Power Platform
- Open the Power Platform Admin Center as a System Administrator at https://admin.powerplatform.microsoft.com/environments/
- Select your Dataverse/Dynamics environment and then the “Settings” button from the top of the screen
- Under “Users + permissions”, click “Application Users”
- Click “New app user”
- Click “Add an app”
- Select the App Registration that you created earlier, such as “fSeries”
- Select the Business Unit to add the app user to
- Select the Security roles to assign the user once created, for example System Administrator
- Click Create. You should notice the App ID is the same Application (client) ID created earlier
Adding the Connection String to fSeries
Now that the App Registration and User has been created, you are ready to connect from fSeries.
Within your Dataverse Data Source in fSeries, enter your connection string, which should be as follows:
AuthType=ClientSecret;url=https://yourserver.crm.dynamics.com;ClientId=YourClientId;ClientSecret=YourClientSecret
Enter the connection string as above, substituting the Url, ClientId and ClientSecret accordingly, and use the Test button to test your connection.
