Skip to Content

Clarizen connector Query

The Clarizen query activity available within the Clarizen connector allows you to search for existing data in a connected Clarizen instance using Jitterbit. Jitterbit provides a wizard to build the query, or you can choose to build your own searches using Clarizen Query Language (CZQL).


Before you set up a Clarizen query operation, you will need to have a Clarizen endpoint defined. For more information on creating an endpoint, see Clarizen connector endpoint.

This page describes how to search for existing Clarizen data using an example of querying an existing task in Clarizen through Jitterbit. The same task being queried was used in the examples for Clarizen connector create and Clarizen connector update.


For reference, see the Jitterpak ClarizenExample.jpk and accompanying files in Unzip the to your "C:\" drive, or if you unzip to another directory make sure to edit the source and target directories in the operations. If this is your first time using a Jitterpak see Importing a Jitterpak.

This example is used for demonstration purposes only and does not cover all options available in the product; please refer to Design Studio for more comprehensive documentation.

The following sections are divided up into beginning the query activity, defining the operation components, and deploying and executing the operation.

Creating a Clarizen Query operation


If you are not already familiar with Jitterbit, see Get started or Design Studio for detailed information on how to use the product.

  1. Within your project within Jitterbit Studio, there are several ways to start a new Clarizen query activity.

    • Go to File > New > Connectors > New Clarizen Query.
    • In the tree on the left under Connectors, right-click on the Clarizen category, then select New Clarizen Query.
    • In the tree on the left under Connectors, double-click on the Clarizen category, then right-click on Clarizen Query Activities and select New Clarizen Query.
    • In the top toolbar, click the connector icon (orange jigsaw piece) attachment. In the popup, select Clarizen, then select Clarizen Query.
  2. The endpoint configuration screen should open directly in the main view of Studio. Select the endpoint that you would like to search for existing data in. You should have already set up your endpoint in Clarizen connector endpoint. Click Next when finished.


  3. The object configuration screen should open. Select the object that you would like to search for existing data in. In this example we want to search for a task within our Clarizen instance, so we select the "Task" object. Click Next to continue.


    If you have a lot of objects available in your Clarizen instance, you may need to wait a moment for them to load. You can also enter an object name into the Filter field. Try the Refresh button if the results are not what you expect.


  4. The query configuration screen should open. The following screenshot displays the example configuration, with configuration options explained below. attachment

    • Type of Query : In the pane on the left are two tabs that allow you to select either Simple Query or Relationship Query. In the example, we will select the Simple Query tab and click the Select All button to return all fields within the task object. Each type of query is described below.

      • Simple Query: A simple query allows you to select from fields within the object you selected on the previous screen. As you select fields, they will be added to the Query string in the right pane.

      • Relationship Query: A relationship query allows you to select from fields within the object, as well as to specify parent or child relationships. You can view the fields within each parent or child by double-clicking on the item. You can also get back to the previous view using the breadcrumbs that appear above the field list. As you create a query, the Query string will populate in the right pane. Relationship queries are defined with a "." between the object and field names.


      If you are already familiar with Clarizen Query Language (CZQL), you can also input the query manually by placing it directly in the Query string box. For further information and examples, see Clarizen's REST API Reference Guide.

    • Conditions: In the top right, you can add conditions to limit your search. For the example, use the Field dropdown to select 'ExternalID', set the Operator to 'equals', and enter the value of the external ID in Clarizen (e.g. 'jw47joqmno25rh7l5azcmo3o26' from the example from Clarizen connector create). Then click Add Condition and scroll down in your Query string to make sure the condition has been added.

    • Paging: Use these settings only if you want to limit the number of records returned or the offset. In the example we are only returning 1 record, so we do not want to apply any paging. To use paging, you can adjust the number of records returned (maximum of 1000), and optionally apply an offset.

      For example, if you set the number of records to 500 with no offset, the first 500 rows will be returned. If you then perform another query and apply an offset of 500, then the query will return records starting at record 501. Note that you must click Apply in order to use this option, and you will see it added to the Query string below.

    • Query string: As you add fields and conditions, the query string should automatically populate here. You can also edit the query string directly using CZQL to include a manual query. It's often a good idea to check your query string after you add fields and conditions so you can see the query that has been created.

      • Validate Query: Check this box to validate the query, if the query was built by checking the field boxes and adding conditions via this page. If you inserted a query string manually, this option may not work as expected.

      • Test Query: Use this button to submit a test query prior to creating the operation. A message should indicate the results of the test. If successful, click Finish. If unsuccessful, check to make sure you have input a valid query and that your endpoint is connected.


      You also can manually modify any query by making changes within the Query string . This includes using global variables within WHERE causes. See Global variables for additional information.

  5. Jitterbit will then proceed with creating a Clarizen API response structure that shows the structure of the response. A new tab should appear in Studio called Clarizen Query Activities. You can rename your query activity here if desired; in the example ours is called "Example Clarizen Search Task." If your query is long, like that shown in the example below, you may need to scroll down to see the response structure. You can use the + - buttons or arrows to expand all elements within the structure.


  6. Next, on the same screen, click the button Create Operation located under Use in an Integration in the upper right corner. This will create the Jitterbit operation that will perform the search.

  7. A new tab should open in Studio called Operations, containing a graphical representation of the search activity.



    The icons for Response and Target in the image above are placeholders for the operation components, which we will define in the next section.

    Save your operation by clicking either the single disk icon to save just this operation or the multiple disk icon to save all changes in your integration project. You should see the asterisk on the Operations tab and operation title disappear as your new update activity is now created and saved to your project.

Defining the operation components

Next we need to define the other components of the operation that appear within the graphical representation, including Response and Target.

For each, the instructions below direct you to return to the graphical representation of the operation you have created and double-click each icon to configure each component. As an alternative, you could also create the Response and Target separately and then drag and drop them from the tree on the left directly onto the icons in the visual representation of your operation.

For purposes of this walkthrough, we provide the following examples for reference above: Jitterpak ClarizenExample.jpk and accompanying files in Many different types of data can be used for each component of the operation. To learn more about additional customization options, refer to the Design Studio section of our documentation.

  • Target: Double-click on the Target icon. In the example, we will record the query response from Clarizen to an XML file. Click the Create New Target button, give your target a Name (e.g. ClarizenQuery_Task_Response.xml). For this example, we are using a private agent with local files enabled, and thus select a Type of "Local File" and then Browse to the location where we want to save the data. In the example, the Folder is 'C:\ClarizenSampleFiles' and the Filename is 'ClarizenQuery_Task_Response.xml'.


    You can also output to a variety of different target types. The type does not have to be the same as the source type. See Targets for options.

  • Response: Double-click on the Response icon and select Create New Transformation. This will open the Transformation Wizard which will walk you through creating the response.


    Additional information on response structures is provided under Transformations.

    1. On the first screen, Name, provide a Name for your transformation or leave as the default. Then use the Target dropdown to select "Clarizen Function Response." Click Next to continue.

    2. On the next screen, Target, select the radio button for Query, then click Next. On the following screen, use the dropdown to select the query operation (e.g. "Example Clarizen Search Task"), then click Finish.

    3. The Transformations tab should open where you can complete your mapping. Use the + to expand the source and target sides. In this example we will create the output response so that it includes all of the queried fields in the response. Click and drag the "OUTPUT" folder from the left side (source side) to the "OUTPUT" folder on the right side (target side). Your mapping screen should now look similar to that below.



      If you need to modify a query that has existing transformations, click the green refresh button attachment to refresh the transformation to include or remove fields as necessary.

Deploying and executing the operation

With the Clarizen query activity fully configured, we are ready to deploy and execute the operation.

  1. From the Operations tab, click the deploy attachment icon.

  2. Then click the execute attachment icon to place the operation in the queue for execution.

  3. In the lower portion of the screen, the Operation monitor should indicate that your operation was run successfully. If not, you can double-click the Status icon to view any log messages.


  4. You should also now see the output response that was mapped to your target file. In the example, the file is now created in 'C:\NetSuiteSampleFiles\ClarizenQuery_Task_Response.xml' and includes all the task fields for the task with the specific ID that was queried.

    <ns:OUTPUT xmlns:ns="urn:czoln-res:document:czoln:oln:entities">
                <ActualStartDate>2016-12-13 06:00:00</ActualStartDate>
                <C_PPR_NamebyStatus>&lt;span style='color: green;font-size:10;'&gt;Testing 123&lt;/span&gt;</C_PPR_NamebyStatus>
                    <id>/C_WorkItemRDAutomationDocumentStatus/Not Started</id>
                    <id>/C_WorkItemRDAutomationState/Not started</id>
                    <id>/C_GenericTaskRFPStage/Pending Approval</id>
                    <id>/ChargedType/Not charged</id>
                    <id>/CommitLevel/No Commit</id>
                <Description>This is my updated task.</Description>
                <Name>Testing 123</Name>
                    <id>/SchedulingType/As Soon As Possible</id>
                    <id>/TrackStatus/On Track</id>
                    <id>/WorkPolicy/Fixed Work</id>