Skip to main content
This guide shows how to use the scheduled run endpoint for Extract LinkedIn Connections with incremental sync via Engagement Identities, and how to migrate existing schedules to incremental mode using the /actions/linkedin-extract-connections/run/schedule route. Incremental mode fetches only new data since the last retrieval instead of the full dataset on every run. It is available only on some engagement-free actions and requires an Engagement Identity. More information here : Incremental Sync Guide

Prerequisites

  • Engagement Identities enabled in your workspace and at least one Engagement Identity created with a connected LinkedIn account
  • API key with access to runs, schedules, and identities

Shared setup (reuse in your code)

The examples below use a single base URL and a small request helper so headers and error handling stay consistent. Define these once and reuse them across Part 1 and Part 2.

Part 1: Implementing Incremental Mode

1.1 Create a new scheduled run in incremental mode

To schedule Extract LinkedIn Connections in incremental mode, send sync_mode: "incremental" in the parameters object and use an Engagement Identity in identity_ids. Behavior:
  • First run: Full sync (capped by max_results).
  • Next runs: Only new connections since the last run. No need to call continue; each scheduled execution is automatically incremental.
In schedule mode, if the previous run is still in progress when the next iteration is due, that iteration is skipped. The following one will run the incremental update.
JavaScript example: create a scheduled incremental Extract Connections run

1.2 Async mode: continue an incremental run

If you use async instead of schedule, you trigger each incremental update by calling the continue endpoint after the previous run has finished. JavaScript example: run async and continue later (Extract Connections)

Part 2: Migrating full-mode schedules to incremental

Schedules cannot be updated in place (e.g. to add parameters.sync_mode). To switch existing Extract Connections schedules from full to incremental, you must:
  1. List schedules for linkedin-extract-connections (optionally restricted to Engagement Identities).
  2. For each schedule: get full details, cancel it, then create a new schedule with the same config plus parameters.sync_mode: "incremental".
Use only Engagement Identities for the new schedules; incremental sync is not supported for standard identities. Schedule objects in the examples have optional fields such as scheduled_run_uid, uid, identity_ids, inputs, callback, cron, timezone, parameters, max_results.

2.1 Get Engagement Identity IDs

Filter identities with type: "engagement" so you only migrate schedules that use them (or only recreate schedules using those identities). The helper below paginates so all identities are returned (not only the first 100).

2.2 List Extract Connections schedules (full mode)

List schedules for the Extract Connections action. The helper paginates so all matching schedules are returned.

2.3 Filter by Engagement Identity (optional)

If the list response includes identity_ids (or similar), keep only schedules whose identities are in your set of Engagement Identity UIDs. If the API does not return identity info, you can still migrate all Extract Connections schedules and rely on the fact that the new schedule you create will use an Engagement Identity.

2.4 Cancel and recreate each schedule with incremental mode

For each schedule to migrate:
  1. GET the schedule by scheduled_run_uid to get inputs, callback, cron, timezone, identity_ids, etc.
  2. POST .../schedules/{scheduled_run_uid}/cancel to delete it.
  3. POST .../actions/linkedin-extract-connections/run/schedule with the same config plus parameters: { sync_mode: 'incremental' }.
Migration helpers (use edgesRequest from the shared setup):
If you don’t need to get older results with the first incremental mode. Keep the max_results low to avoid time consumption

2.5 Full migration script (Extract Connections + Engagement Identities)

End-to-end example: list active Extract Connections schedules, restrict to those using Engagement Identities, then migrate each to incremental by cancel + recreate. Runs sequentially to avoid rate limits.

Summary

For more on incremental sync behavior and limits, see the Incremental Sync guide and Continue a run.