# Create a job

> :::important
The input data must meet the format as required for the app template you are using to create your process app. Refer to [App Templates](https://docs.uipath.com/process-mining/automation-cloud/latest/user-guide/app-templates#app-templates) for details.
:::

:::important
The input data must meet the format as required for the app template you are using to create your process app. Refer to [App Templates](https://docs.uipath.com/process-mining/automation-cloud/latest/user-guide/app-templates#app-templates) for details.
:::

Follow these steps to create the extraction job.

1. Create a new CData Sync job.
2. Enter a descriptive name for the job in the **Name** field. For example, **ServiceNow_to_AzureBlob** or **ServiceNow_to_SQLServer**.
3. Select the source connection created in **Create a source connection** the source connection from the **Source** list.
4. Select the destination connection created in **Create a destination connection** from the **Destination** list.
5. Make sure the option **Standard** is selected as the **Replication Type** and select **Add Job**.
6. Go to the **Task** tab and select **Add Tasks**. Enable the **Custom Query** option.
7. Create a **Custom Query** using the replication queries for your app template and select **Add Tasks**.
   :::tip
   You can copy the replication queries from the documentation for you app template that can be accessed from the list of App templates. Refer to [App templates](https://docs.uipath.com/process-mining/automation-cloud/latest/user-guide/app-templates#app-templates).
   :::
8. Edit the job **Settings** on the **Overview** tab. Enable the checkbox `Parallel Processing` and enter `8` in the **Worker Pool** field to improve loading speed.
9. Configure the **Incremental Replication** to make sure the **Replicate Interval** and **Replicate Interval Unit** are set so the resulting period is equal or larger than the extraction period. For example, if you want to extract data for a period of a year, the **Replicate Interval** and **Replicate Interval Unit** must reflect at least a year period.
10. Go to the **Advanced** tab in the Settings panel and edit the **Replicate Options**. Enable **Drop Table** to prevent the data to be appended to the table.
11. In the **Advanced** tab, set **Insert Mode** to single file.
12. Save your changes.

## Call the data run API

Follow these steps to edit the post-job event to call the data run API.

1. Go to the **Events** tab in the Job Settings panel.
2. Edit the **Post-Job Event** section and add the run API call from the code block ensuring to replace the `value` of the "http.url" with the End of upload API.
   ```
   <api:set attr="http.url" value="https://my-uipath-server.com/default/defaulttenant/processMining_/api/v4.0/apps/98dfd1d5-9e42-4f0e-9a0a-8945629f01b3/transform/unauthenticated"/>
   <api:call op="httpPost" in="http"/>
   ```

Refer to [Retrieving the credentials for the Azure blob storage](https://docs.uipath.com/process-mining/automation-cloud/latest/user-guide/retrieving-the-credentials-for-the-azure-blob-storage#retrieving-the-credentials-for-the-azure-blob-storage).
3. Save your changes.
4. Select **Jobs** and locate the destination job.
5. **Run** the job to test if the job runs correctly.

## Logging information

You can add additional statements to obtain logging information on the API call. Follow these steps.

1. Add the following statements **in between** the lines previously added in the Post -Job event. `<api:set attr="http.verbosity" value="5"/>` `<api:set attr="http.logfile" value="D:/mydir/cdata_log.txt"/>`
2. Edit the job **Settings** on the **Overview** tab and select **Verbose** from the **Logfile Verbosity** list box.
3. Run the job and check the log file that is created.
