Ready to get started?

Learn more about CData Connect Cloud or sign up for free trial access:

Free Trial

Prepare, Blend, and Analyze Paylocity Data in Alteryx Designer



Build workflows to access live Paylocity data for self-service data analytics.

Alteryx is a software platform that allows people to work with data more easily. When paired with CData Connect Cloud, Alteryx provides instant access to Paylocity data from your data automation processes. This article demonstrates how to connect to Paylocity using Connect Cloud and work with Paylocity data in Alteryx.

CData Connect Cloud offers a dedicated SQL Server interface for Paylocity, facilitating data querying without the need for data replication to a native database. With built-in optimized data processing capabilities, CData Connect Cloud efficiently directs all supported SQL operations, including filters and JOINs, straight to Paylocity. This harnesses server-side processing to rapidly retrieve the desired Paylocity data.

Configure Paylocity Connectivity for Alteryx

Connectivity to Paylocity from Alteryx is made possible through CData Connect Cloud. To work with Paylocity data from Alteryx, we start by creating and configuring a Paylocity connection.

  1. Log into Connect Cloud, click Connections and click Add Connection
  2. Select "Paylocity" from the Add Connection panel
  3. 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.

  4. Click Create & Test
  5. Navigate to the Permissions tab in the Add Paylocity Connection page and update the User-based permissions.

Connect to Paylocity from Alteryx

Once you establish a connection to Paylocity in Connect Cloud, you are ready to work with Paylocity data in Alteryx. To begin, download the ODBC Driver for CData Connect.

  1. In the ODBC Driver for CData Connect, select OAuth and click Test Connection. Then enter your CData Connect Cloud Credentials and Sign in.
  2. Open Alteryx Designer and create a new workflow.
  3. Drag and drop a new input data tool onto the workflow.
  4. Click the drop down under Connect a File or Database and select the Data sources tab.
  5. Navigate to the end of the page and click on ODBC under Generic connection.
  6. Select the DSN that you configured for use in Alteryx.
  7. In the wizard that opens, drag and drop the table to be queried in the Query Builder box. Select the fields by checking the boxes that you wish to include in your query. Where possible, the complex queries generated by the filters and aggregations will be pushed down to your data source, while any unsupported operations (which can include SQL functions and JOIN operations) will be managed client-side by the CData SQL engine embedded in the connector.

To further customize the dataset, you can open the SQL Editor and modify the query manually, adding clauses, aggregations, and other operations to ensure that you are retrieving exactly the data desired.

With the query defined, you are ready to work with your data in Alteryx Designer.

Get CData Connect Cloud

To get live data access to 100+ SaaS, Big Data, and NoSQL sources directly from your SQL Server database, try CData Connect Cloud today!