> For the complete documentation index, see [llms.txt](https://motivlabs.gitbook.io/impulse-user-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motivlabs.gitbook.io/impulse-user-manual/cookbook-recipes/reference-to-value.md).

# Reference to Value

### Case 1: Destination wants to use specific field from a referenced content

Assume you have a source content type: `Excursion` that has a reference field to a `Destination` content type. See content model:

![](/files/LZXCO9RzU0NJxZg6171i)

This is how the source content of type `Excursion` looks like:

![](/files/zMKYzOyS5RlLeQbT9mVd)

This is the referenced `Destination` content, take a look to the `Name` field, that's the one we want to use in the target endpoint:

![](/files/GCnpzKMcqhYDQgv42C0O)

In the target endpoint, we have a content type `Excursion` that has a field `Location` that is a text field. See content model:

![](/files/YgmsPNaqVi2LlhcqYejB)

The value of the `Location` field in the target endpoint will be the value of the `Name` field of the referenced `Destination` content.

#### Solution

ImpulseSync can solve this with 2 jobs and couple manipulators. We will use both the [store-field](/impulse-user-manual/content-manipulators-motators/store-field.md) and [get-set-field](/impulse-user-manual/content-manipulators-motators/get-set-field.md) manipulators.

**Step 1: Create a job to sync the referenced content: `Destination`**

* First we create the job to sync the referenced content: `Destination` from the source endpoint to the destination endpoint.

![](/files/tJlhbwuhDbDfRTjwheco)

* Next we set up the `store-field` manipulator.

![](/files/6qR8r2b84ar4IWJL36uS)

This manipulator is configured to store the value of the `Name` field of the referenced content: `Destination`. This variable can be referenced later by the `get-set-field` manipulator.

**Step 2: Create a job to sync the referencing (main) content: `Excursion`**

* First we create the job to sync the referencing (main) content: `Excursion` from the source endpoint to the target endpoint.

![](/files/0JEjNqIgetLnH4P67H3h)

* Next we set up the `get-set-field` manipulator.

![](/files/kT5VYEDrxjQuHvUeq7Qb)

This manipulator is configured to get the value of the `Name` field of the referenced content: `Destination` and set it to the `Location` field of the referencing (main) content: `Excursion`.

**Step 3: Run the jobs**

Now we can run the jobs and see the results.

![](/files/BnBUH0avnz1bJrV2iYbg)
