We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →Build Apps with Live Paylocity data in Adalo using CData Connect Cloud
Use CData Connect Cloud to integrate live Paylocity data into the Adalo platform and build custom mobile and web applications with real-time Paylocity data.
Adalo is a no-code platform used to build custom mobile and web applications without needing programming skills. It allows users to design interfaces, manage databases, and integrate functionality through simple drag-and-drop tools, making app development accessible and efficient. When combined with CData Connect Cloud, it provides access to Paylocity data to build custom applications and more.
This article explains how to use CData Connect Cloud to create a live connection to Paylocity and how to connect and access live Paylocity data from the Adalo platform.
Configure Paylocity connectivity for Adalo in CData Connect Cloud
To work with Paylocity data in Adalo, you need to connect to Paylocity from Connect Cloud, provide user access to the connection, and create an OData endpoint for Paylocity data.
Additionally, you need to generate a Personal Access Token (PAT) on the Settings page. Be sure to copy it down, as it serves as your password during authentication.
Follow the steps below to configure Paylocity connectivity for Adalo. For more information, see the Connections section of the Help documentation.
- Log into Connect Cloud, click Connections and click Add Connection
- Select "Paylocity" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Paylocity.
Set the following to establish a connection to Paylocity:
- RSAPublicKey: Set this to the RSA Key associated with your Paylocity, if the RSA Encryption is enabled in the Paylocity account.
This property is required for executing Insert and Update statements, and it is not required if the feature is disabled.
- UseSandbox: Set to true if you are using sandbox account.
- CustomFieldsCategory: Set this to the Customfields category. This is required when IncludeCustomFields is set to true. The default value for this property is PayrollAndHR.
- Key: The AES symmetric key(base 64 encoded) encrypted with the Paylocity Public Key. It is the key used to encrypt the content.
Paylocity will decrypt the AES key using RSA decryption.
It is an optional property if the IV value not provided, The driver will generate a key internally. - IV: The AES IV (base 64 encoded) used when encrypting the content. It is an optional property if the Key value not provided, The driver will generate an IV internally.
Connect Using OAuth Authentication
You must use OAuth to authenticate with Paylocity. OAuth requires the authenticating user to interact with Paylocity using the browser. For more information, refer to the OAuth section in the Help documentation.
The Pay Entry API
The Pay Entry API is completely separate from the rest of the Paylocity API. It uses a separate Client ID and Secret, and must be explicitly requested from Paylocity for access to be granted for an account. The Pay Entry API allows you to automatically submit payroll information for individual employees, and little else. Due to the extremely limited nature of what is offered by the Pay Entry API, we have elected not to give it a separate schema, but it may be enabled via the UsePayEntryAPI connection property.
Please be aware that when setting UsePayEntryAPI to true, you may only use the CreatePayEntryImportBatch & MergePayEntryImportBatchgtable stored procedures, the InputTimeEntry table, and the OAuth stored procedures. Attempts to use other features of the product will result in an error. You must also store your OAuthAccessToken separately, which often means setting a different OAuthSettingsLocation when using this connection property.
- RSAPublicKey: Set this to the RSA Key associated with your Paylocity, if the RSA Encryption is enabled in the Paylocity account.
- Click Create & Test
- Navigate to the Permissions tab in the Add Paylocity Connection page and update the User-based permissions.
Add a Paylocity OData endpoint to CData Connect Cloud
Once you're connected to Paylocity, create an OData endpoint for the desired table.
- Go to the OData page from the left panel. Click Add and select Connections from the Add Entity Set window.
- Select your Paylocity connection (for example, Paylocity1) and click Next.
- Select the table you want to use and click Confirm to create a new OData endpoint.
- Save the endpoint to connect Paylocity with Adalo in the next section.
With the connection and OData endpoint configured, you can connect to Paylocity data from Adalo.
NOTE: You can also do the same using the Virtual Datasets functionality in CData Connect Cloud. Refer to this YouTube link or our product documentation to learn more about the Virtual Datasets.
Build a custom app with Adalo
After configuring CData Connect Cloud, you can begin developing the Adalo app using Paylocity data.
- Click on CREATE NEW APP.
- Select Desktop Web App and click on Next.
- You can choose any template, but for testing purposes, we've chosen a Blank template.
- Finally, add an app name and choose a color scheme, and your app is ready to go!
Registering external collections
Adalo uses a data structure called Collection to manage app data and offers a feature called External Collections with APIs, which lets you seamlessly integrate Collection with external APIs. Use this feature to connect to Connect Cloud.
- After creating an app, you first need to register a Collection, which is a definition for handling data within the Adalo app. There are two types of Collections: Database Collections, which are like Adalo's own internal database, and External Collections, which allow access to external APIs. In this case, we will access an external API, registering it as an External Collection.
- On the External Collections registration screen, click on ADD COLLECTION to enter the collection name (any name of your choice), and provide the API base URL endpoint (OData endpoint registered on Connect Cloud). Make sure to add "/(table)" to the OData URL to access the specific endpoint. (Refer to the image given for reference)
- In order to authenticate, you need a base64 authorization header comprising your username and PAT, joined by a colon. For example, [email protected]:MY_PAT. You can use a scripting tool, web tool, or other application to create this header.
Using Postman to generate the Authorization header
- Open the Postman application. Enter the OData URL mentioned in the previous step for a GET request on Postman. Click on the Authorization tab and select Auth Type as "Basic Auth". Enter the Username and Password as follows and click on Send:
- Username: Connect Cloud Username
- Password: PAT generated on Connect Cloud
- Go to the Headers tab and copy/save the value of the Authorization key.
- Open the Postman application. Enter the OData URL mentioned in the previous step for a GET request on Postman. Click on the Authorization tab and select Auth Type as "Basic Auth". Enter the Username and Password as follows and click on Send:
- Back in Adalo, click on ADD ITEM and select Header.
- Enter the details in the Header section as follows:
- Name: "Authorization"
- Value: Authorization key value copied in the previous step
- Select Done and click on Next.
- Select Get All and enter "value" in the Results Key section. Click on Done and Next.
- Now, to test the API setup, click on RUN TEST. If you finally see the message and response shown below, the creation of External Collections is complete.
Creating a list screen
After configuring CData Connect Cloud, you can now begin developing the app on Adalo using Paylocity data.
- First, click the + button in the upper right corner of the Adalo screen to display the list screen, then drag and drop "Simple List" onto the screen.
- Once the layout is complete as shown below, link the External Collections definition you created earlier to What is this a list of?
- Click on "Add Magic Text" button (as shown) to add the "Title" and "Subtitle" to the data items you want to obtain.
- Now, click on View App in the top right corner of the screen and select Staging Preview.
- You can now view the Paylocity data in the app created on Adalo.
Live connections to Paylocity data from cloud applications
Adalo now allows you to connect to live Paylocity data directly, allowing you to create more connections and apps without duplicating Paylocity data.
To get real-time data access to over 100 SaaS, big data, and NoSQL sources directly from your cloud applications, visit CData Connect Cloud.