# Targeted syncs - best practice

## Introduction

Most endpoints have a unique [variable](/product-documentation/developer-hub/connector-builder/building-your-own-connector/4-endpoints/endpoint-options/endpoint-variables.md) or [parameter](/product-documentation/developer-hub/connector-builder/building-your-own-connector/3-authentication-methods/authentication-method-options/url-parameters.md#using-url-parameters-in-authentication-requests) used to target a specific entity (for example, `order_id`, `customer_id`, `product_id`, etc.). When these are defined, you can enter required values at runtime to target a specific item - for example:

<figure><img src="/files/cRoMNQn601px9by14909" alt=""><figcaption></figcaption></figure>

Here, our flow is built to use a connector endpoint (`retrieve specific product`) that includes a unique variable named `ref`. When we access connector settings, this variable is surfaced so users can enter a value to target when the process flow runs.

## Recommendation

When building process flows, we recommend building an alternative version which allows users to specify such an identifier in connector settings, so single items can be processed most efficiently in the event of a sync issue - for example:

<figure><img src="/files/fleklpKq81QzJ56rV0Pv" alt=""><figcaption></figcaption></figure>

## Related pages

* [Endpoint variables](/product-documentation/developer-hub/connector-builder/building-your-own-connector/4-endpoints/endpoint-options/endpoint-variables.md)
* [Endpoint parameters](/product-documentation/developer-hub/connector-builder/building-your-own-connector/4-endpoints/endpoint-options/url.md#endpoint-parameters)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/best-practice-for-building-process-flows/targeted-syncs-best-practice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
