# Using Violet data in Sedaro

### Link Violet data to a Sedaro simulation

Using [Workflows](https://docs.violetlabs.com/features/workflows), you can link a Sedaro simulation to data in Violet and have it trigger a re-run whenever data changes.

1. First, create a Sedaro integration in Violet, and make sure it is fetching **branches.**&#x20;
2. Head to the desired branch's page in Violet and select what you want to modify.

   ![](https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FBn2oqDlEJTVszKBFCg22%2FScreenshot%202024-08-23%20at%204.43.55%E2%80%AFPM.png?alt=media\&token=1843c86c-57c6-4bed-9630-9b16157ed13f)
3. On the selected sub-component detail page, linkable properties will have a link symbol next to them. Click on the link icon and use the keyword search to select the Violet value (e.g. a parameter value, a data property from an integration, etc.) that you want to link. The new, live-linked value will display on the properties list and will be pushed to Sedaro.
   1. Be careful, as the selected linked entity value will immediately be pushed to Sedaro and will overwrite any existing values.

      ![](https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2F4Gwnk16gi9qozm2LkdyH%2FScreenshot%202024-08-23%20at%204.43.36%E2%80%AFPM.png?alt=media\&token=5eaeef72-789c-4908-b57d-82de50131ad9)
4. Whenever the linked value changes, the new value will be pushed to Sedaro.
5. To unlink this value, hit the unlink button next to the property. This will save this property to the current value, and will stop updating whenever the linked entity changes.

### Starting a Simulation

You can also initiate a simulation in Sedaro from a selected branch within Violet.

1. To start a simulation, find the branch in Violet you want to run, select **Start Simulation** under **Available Sedaro Functions**, and select **push**.
2. To configure a simulation to re-run whenever a linked value changes:

   1. Link your desired data by following the [Link Violet data](#link-violet-data-to-a-sedaro-simulation) instructions above. Remember the Violet ID of your linked data
   2. Navigate to [Workflows](https://app.violetlabs.com/workflows/) and click **+Workflow** (or find Workflows [here](https://app.violetgov.com/workflows/) if you're on VioletGov)
   3. Give your workflow a name, and select **Activity** as the type, then **Linked Property Value Changed.**
   4. For **Enter the ID of the Violet Entity to Watch**, enter the Violet ID of the Sedaro data linked in step (a).
   5. Select **Select an Entity Specific Action** as the action.
   6. For **Enter the ID of the Violet Entity to get a list of available actions,** enter the Violet ID of the branch you will run the Simulation on.
   7. Under **Entity Actions**, select **Start Simulation**, then save the workflow.

   ![](https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2F1boKrHsTWBsTdXZ6Nuo7%2FScreenshot%202024-08-23%20at%204.52.19%E2%80%AFPM.png?alt=media\&token=d94d9565-7fd8-42e4-a22b-3668c9437a5d)

   Now, whenever a linked entity value changes on the selected subcomponent, a new simulation will start in Sedaro.
