---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Edit flow in Workflow Studio

# Edit flow in Workflow Studio {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Edit flow in Workflow Studio

This document guides ServiceNow customers on editing flows in Workflow Studio to ensure correct implementation of pagination for data import.
Proper pagination confirms that data imports correctly using one of four batch import methods: None, Offset-based, Time-based, and Token-based.
Show full answer Show less  

## Batch Import Methods and Configuration

* **None batch import:** Choose this if you do not want to use Automation Center's pagination. No additional configuration is required.
* **Offset-based batch import:** Import data starting from a specific offset with a defined batch size (limit). Key parameters include:
  * Offset: Starting record
  * Total items: Number of records to import
  * Limit: Number of records per batch

  Configure these values in the *SourceHub get offset based pagination chunks* action, and map the output for use in your selected action. For actions that don't support limit and offset directly, either add a preliminary action to generate a query or create a modified copy of the action that accepts limit and offset as inputs.
* **Time-based batch import:** Import data within a specific date range using the *SourceHub get date based pagination chunks* action. Specify start and end dates in the format **YYYY:MM:DD:HH:MM:SS**. Map the date range output to your action. For actions without native date range support, use similar approaches as offset-based method: add a preparatory action or modify a copy of the action to handle dates.
* **Token-based batch import:** Use a continuation token (e.g., nexturl, nexttoken) to import data batches. Provide the exact token name matching your action's output. Configure the do-while condition to use this token, create a string Flow Variable to store the token value, and set this variable after each batch import. This ensures proper continuation in the flow.

## Practical Considerations

* Always ensure parameters like offset, limit, date ranges, or tokens are correctly mapped in the flow to enable accurate and efficient data import.
* When an action doesn't natively support pagination parameters, use auxiliary actions or copies of the action to implement filter queries for pagination.
* After configuring the batch import method, use the *Done and Test* option and follow subsequent steps in the batch import setup to validate the flow.  
Edit the flow to confirm that the pagination is implemented correctly. This confirms that the data is imported correctly.  
There are four batch import methods:

* None
* Offset
* Time based
* Token based
{#cm-edit-flow-ac__ul_olk_j3g_c2c}

## None batch import {#cm-edit-flow-ac__section_twd_1v5_c2c}

Select the none batch import method if you do not want to use the pagination method provided in Automation Center. There is no step required here.

## Offset-based batch import {#cm-edit-flow-ac__section_nbm_nkf_c2c}

Select the offset-based batch import method (pagination method) if you want to import data using a specific start point (offset) and a batch size (limit).

* Offset: The starting point for importing data.
* Total items: The total number of records that you want to import.
* Limit: The number of records to import in each batch.

For example: If you set the offset to 20, total items to 200, and limit to 10, then the system will import data in batches of 10 records starting from record 20 and continuing until all 200 records are
imported.

Steps to configure

1. In the SourceHub get offset based pagination chunks action, specify values for the offset, total items, and limit fields, and then select Done.

   After the values are
   defined, the chunks_child0 field will be available in the right-hand panel (under For Each).
2. For the action you selected during the Select Action step, map the limit from SourceHub get offset based pagination chunks action and offset values using the
   chunks_child0 field output generated by the SourceHub get offset based pagination chunks action.

   Handling actions that don't support limit and offset

   Map the limit and offset values in your action using the output returned by the SourceHub get offset based pagination chunks
   action.

   If your selected action doesn't have predefined parameters for offset-based pagination but includes a filter that can accommodate these parameters, you can do one of the following:
   * Option 1: Add an action just before your selected action to handle the limit and offset. This action should generate a query that the primary action can use to fetch data.
   * Option 2: Copy your primary action, modify it to include inputs for limit and offset, and process these inputs to create a query. Pass this query to the filter of your original action.

   {#cm-edit-flow-ac__ul_mfb_mjt_c2c}  
   Note:  
   If you choose Option 2, ensure that you create a copy of the original action first. After copying, reselect the copied action in the Select Action step and regenerate the flow. For information about selecting an action, see [Select an action](https://www.servicenow.com/docs/IWXVuWy7r9OXsfIqOXJk9Q "Select an action suitable for your data import into ServiceNow instance.").
3. Select Done and Test.
4. Follow steps 3 onwards in [Configure batch import for data](https://www.servicenow.com/docs/A2d15EFEaN1vvsMWhG5GcQ "Configure batch import of data to specify the pagination method for importing large data sets.").
{#cm-edit-flow-ac__ol_ckb_5qf_c2c}

## Time-based batch import {#cm-edit-flow-ac__section_i3l_4kf_c2c}

Select the time-based batch import method if you want to import data for a specific date range.

Steps to configure

1. In the SourceHub get date based pagination chunks action, specify the start date and end date, then click Done.

   After you values are defined, the
   range field in your right panel is available.
2. For the action you selected during the Select Action step, map the start date and end date values using the range field output generated by the SourceHub get date based pagination chunks action.

   Date format

   The Connection Manager uses and returns dates in the format: YYYY:MM:DD:HH:MM:SS. If your Action supports date ranges, the format
   is automatically applied.

   Handling actions that don't support date ranges  
   If your action doesn't automatically support date ranges but includes a filter for custom parameters, you can follow one of these approaches.
   * Option 1: Add an action before your selected action to handle the start date and end date. This action should generate a query that your primary action can use to fetch data.
   * Option 2: Copy your primary action and modify it to include inputs for start date and end date. Process these inputs within the action to create a query and pass it to the filter of your original action.

     Note:  
     If you choose Option 2, ensure that you create a copy of the original action first. After copying, reselect the copied action in the Select Action step and regenerate the flow. For information about selecting an action, see [Select an action](https://www.servicenow.com/docs/IWXVuWy7r9OXsfIqOXJk9Q "Select an action suitable for your data import into ServiceNow instance.").
   {#cm-edit-flow-ac__ul_dz1_mrt_c2c}
3. Select Done and Test.
4. Follow steps 3 onwards in [Configure batch import for data](https://www.servicenow.com/docs/A2d15EFEaN1vvsMWhG5GcQ "Configure batch import of data to specify the pagination method for importing large data sets.").
{#cm-edit-flow-ac__ol_klj_5qt_c2c}

## Token-based batch import {#cm-edit-flow-ac__section_m1z_4kf_c2c}

Select the token-based batch import method if you want to import data using a continuation token.

When you select the token-based batch import method on the Configure batch import page, you must provide a name for the token. This token represents the continuation value returned by your
action (such as, next_url, next_token, or next). Ensure that the token name matches exactly as it is returned from the action, including spelling and capitalization.

Steps to configure

1. If the provided token name is correct, the do-while condition will automatically map it. If it remains blank, manually drag the continuation token from your action's output into the condition field of the do-while logic.
2. Add a Flow Variable of type string to store the updated value of the token.
3. Save your changes, and click Done.
4. Insert a Set Flow Variable logic step after your selected action. In this step, set the value of the newly created flow variable to the continuation token returned by your action. Ensure this token matches the one mapped to the do-while condition.

5. Select Done and Test.
6. Follow steps 3 onwards in [Configure batch import for data](https://www.servicenow.com/docs/A2d15EFEaN1vvsMWhG5GcQ "Configure batch import of data to specify the pagination method for importing large data sets.").
{#cm-edit-flow-ac__ol_ick_dst_c2c}

