Cyclr Community
  • Forums
  • Tutorials
  • Documentation
    • User Documentation
    • Connector Guides
  • Resources
    • New Features
    • Blog
    • Changelog
    • Support Portal
    • Newsletter Archive
    Sign in
    Cyclr Logo
    Cyclr Logo
    • Forums
    • Tutorials
    • Documentation
      • User Documentation
      • Connector Guides
    • Resources
      • New Features
      • Blog
      • Changelog
      • Support Portal
      • Newsletter Archive

    About Cyclr

    6
    • Introduction to Cyclr
    • Minimum requirements
    • Glossary
    • Errors
    • IP Allow List
    • Legal notices

    Cyclr Console

    14
    • Partner Console Dashboard
    • The Builder
    • Reports
    • Console Configuration
    • General Settings
    • Notifications
    • Embedding Customization
    • Security settings
    • Data retention settings
    • Custom Service Domains
    • Handle transaction errors
    • Payload Size Limitations
    • Performance tips
    • GitHub Integration

    Connectors

    33
    • Introduction to Connectors
    • Connectivity Comparison
    • Connector Guides
    • Application Connectors
      • Introduction to Application Connectors
    • Utility Connectors
      • Introduction to Utility Connectors
      • Counter Storage
      • Cross Updating Preventer
      • Data Tools
      • Entity Cross Ref Storage
      • Generic File
      • Generic File Downloader
      • Generic Form
      • Generic Webhook
      • Data Storage
        • Introduction to Data Storage Connectors
        • Global Data Storage
        • Global Object Storage
        • Cycle Data Storage
        • Cycle Object Storage
    • Custom Connectors
      • Introduction to Custom Connectors
      • Methods
      • Triggers
      • Last Successful Run Date
      • Parameters
      • Scripting
      • Data Types
      • Paging
      • Custom Objects
      • Dynamic Custom Fields
      • Automatically Install Webhooks
      • Connector Standards
      • Settings
      • Authentication
      • Rate Limits

    Templates

    17
    • Introduction to Templates
    • Template Settings
    • Create a Template
    • Tools
    • Connectivity Tools
    • Map fields
    • Add Custom Fields
    • Custom Object Method Categories
    • Test Scripts
    • Collection splitting
    • Pass data between two steps
    • Test a template
    • Template versioning
    • Introduction to Cycles
    • Stop a cycle
    • Copy Cycles as Templates
    • Import or Export Templates

    Accounts

    5
    • Introduction to Accounts
    • Account Users
    • Sub Accounts
    • Connector Authentication Link
    • Export or Import Cycles

    Embedding

    17
    • Introduction to Embedding
    • ORBIT
    • Installing a Partner Connector
    • Embed Cyclr in an iFrame
    • Launch
      • Introduction to Launch
      • User Experience
      • Customize Appearance
      • Build Compatible Templates
      • Handle LAUNCH callbacks
      • Deploy LAUNCH
    • Marketplace
      • Introduction to Marketplace
      • Set up a Marketplace
      • Styling Marketplace
      • Deploying a Marketplace
      • Marketplace Callback
      • Marketplace Webhook Callback
      • Marketplace Settings

    API

    19
    • Introduction to the Cyclr API
    • Authentication
    • Authorize Account API calls
    • Install Connectors into an Account
    • Install a Cycle from a Template
    • Step Setup
    • Activate a Cycle
    • Install Connectors
    • Create an Account
    • API Example Walkthrough
    • Connector Authentication
      • Introduction to Connector Authentication
      • API Key Authentication
      • HTTP Basic Authentication
      • OAuth Authentication
    • Data on Demand
      • Introduction to Data on Demand
      • Get Account Connectors
      • Get Connector Methods
      • Call a Connector Method
      • IP Restriction

    Release Notes

    28
    • Introduction to Release Notes
    • 2025
      • 2025-06
      • 2025-05
      • 2025-04
      • 2025-03
      • 2025-02
      • 2025-01
    • 2024
      • 2024-12
      • 2024-11
      • 2024-10
      • 2024-09
      • 2024-08
      • 2024-07
      • 2024-06
      • 2024-05
      • 2024-04
      • 2024-03
      • 2024-02
      • 2024-01
    • 2023
      • 2023-12
      • 2023-11
      • 2023-10
      • 2023-06
      • 2023-05
      • 2023-04
    • Archive
      • Archive
      • 2022
      • 2021
    View Categories
    • Home
    • Documentation
    • Connectors
    • Custom Connectors
    • Last Successful Run Date

    Last Successful Run Date

    3 min read

    If you need a method that only pulls data generated or modified after a specific point in time, you can use Cyclr’s Last Successful Run Date functionality.

    Each Step in a Template or Cycle has a Last Successful Run Date stored against it, which Cyclr updates each time a successful run occurs.

    If an error occurs – such as a 4xx Response being received – this value is NOT updated, allowing the next run to attempt retrieve the same data again, as well as any additional data that may be available.

    Many Connector Methods take advantage of the Last Successful Run Date such as those prefixed “List New …” or “List Updated …”, examples being a List Created Contacts or a List Updated Accounts Method.

    “Last Successful Run Date” Mergefield #

    If a particular endpoint accepts a date as a parameter, you can enter the Cyclr Last Successful Run Date as a mergefield. See the example API call below where you can request only contacts with a createdDateTime Greater Than (“ge” in this example API’s syntax) a specified date/time value:

    https://www.api.com/contacts?$filter=createdDateTime ge 2024-11-02T14:32:02Z

    You can add the Last Successful Run Date mergefield directly to the endpoint in your Connector Method and also provide a format string as follows:

    https://www.api.com/contacts?$filter=createdDateTime ge {{LastSuccessfulRunDate format=yyyy-MM-ddTHH:mm:ssZ}}

    If you include that on a Connector Method which you add into a Template or Cycle, the Step using that Method would retrieve all of the contacts that were created after the last time that Step ran successfully.

    Note: The {{LastSuccessfulRunDate}} Mergefield is not available when Inline Script is used within a Step Mapping. In those situations, use Step-level Script to work with it.

    Change a Step’s “Last Successful Run Date” Value #

    If you want a step to use a specific date, you can use the Date Picker. To use the date picker, go to Step Setup > Advanced Settings:

    Test Steps #

    If you select Test Step, the step uses the Last Successful Run Date value set on the Step, but doesn’t update the value afterwards. If you’ve never run the step before, and haven’t given a value, the default date is 1970-01-01T00:00:00Z.

    1970-01-01T00:00:00Z in Cyclr indicates that no date/time value is set on a step.

    Run a Cycle #

    When you run a cycle, Cyclr uses the Last Successful Run Date value set on the step. If the value is 1970-01-01T00:00:00Z, however, Cyclr updates the Last Successful Run Date value to the current date/time. This behavior prevents the step from trying to retrieve all existing data on the first run of a cycle.

    Note: If you do need to retrieve historical data on the first run of a step, you can use script on the step to have the first run start from a date in the past.

    Using “Last Successful Run Date” in Script #

    The Last Successful Run Date value can be accessed in “before_action” Script event functions by using the last_successful_run_date variable.

    Share This Article :
    • Facebook
    • X
    • LinkedIn
    • Pinterest
    TriggersParameters
    Page Contents
    • "Last Successful Run Date" Mergefield
    • Change a Step's "Last Successful Run Date" Value
    • Test Steps
    • Run a Cycle
    • Using "Last Successful Run Date" in Script

    Company

    • Company
    • About Us
    • Security and Compliance
    • Pricing
    • Blog
    • Branding
    • Embedded iPaaS

    Legal

    • Website Terms
    • Privacy Policy
    • Terms and Conditions
    • Data Protection Agreement
    • SLA
    • GDPR

    UK Office

    +44 (0) 3300 102 525

    US Office

    +1 (646) 585-2525


    White labelled API integration framework for creating & managing in-app SaaS integrations.

    © 2025 Cyclr. All rights reserved.