# Workflow Action: Update Affiliate

In this article, we will walk through how to use the Update Affiliate workflow action. This is useful to automate adding Affiliates to the Affiliate Manager.

**Step 1:** Start a new workflow or edit an existing one

**Step 2:** Set up applicable Workflow Trigger(s). We have multiple articles available to explain the setup of each of the Workflow Triggers. Feel free to review our articles on these for more information on setting these up.

{% embed url="<https://lh4.googleusercontent.com/nm4nxjn03hgP9VkAE24K5KOLb7RKimyhXaTbbKTHIuqQP11kp4nz4bIYqI7xkpJtOvBw7CYGMqa6sLF0X-ZdGQkA1x1pAJbvSbhSPUWQZanbM39BANrqdA4o50f1Fr7TCRXqTOfR2p7bll4w7Zl5Jnw>" %}

***Pro Tip:*** You can use any Workflow Triggers to trigger the Update Affiliate action or you could leave this workflow without any triggers.

**Step 3:** Setting up the Update Affiliate Action

* Click on the “+” symbol below the trigger to add an action.

{% embed url="<https://lh3.googleusercontent.com/-X0HbEGosvsBu5FUv-eIEMKIwVLNOuqcyGJH6jymc2WNsT-4iqMVEbirGRbNkDdxNQYMKCr9y-r3OTBZWkrYxgu5H3iUxdTpr_K4MmBeZWN3mR9IF3UBCEEFSOgdjPIHiWFr5IKFGRkaA5EpZZ1bBMs>" %}

* Under Actions, select Update Affiliate Manager in the Affiliate section of the Actions Menu or use the search feature

{% embed url="<https://lh3.googleusercontent.com/ADJ1BoXh1-vMSPtIXPKtlBepbpvM5X8n5xgmL0X_8qFkvB6sZQtTiaFfFbo7Doay89uz8gbWbKW5Cc60VtQAR2WAuZsIzbEc8dzFJN8gRVz-FsUBU_zKNd6Hv3uM6_VOQti47t4hc02D6oplv1C1cUs>" %}

* Select whether or not to mark as **active** or **inactive**
* Press **Save** in the bottom right corner of the Action setup menu

{% embed url="<https://lh5.googleusercontent.com/BSY0F0MVvV1R-ZJxI6Cx7eTNSVvkxk8whGIHNggiT0QLdhyzwjGYmyPZn2BzBtXIKmsF54P52ZKKDoHrzHdmkLqlqfsS46GtcJ1cWJe9-OHF-xAcgtGOPaPPl69BnqEc6a-pri2rQ4dJ_UPfIgPa8N0>" %}

**Step 4:** Press **Save** in the top right corner of your browser to save the workflow

* If your Workflow is ready to be enabled, make sure the toggle switch under **Save** is set to **Publish**
* Be sure to test your Workflow to make sure it is set up correctly using the **Test Workflow** button next to the **Publish** toggle switch.
  * For an in-depth overview of Workflow Testing see our article, “Using the Testing Features in Workflows”

{% embed url="<https://lh6.googleusercontent.com/5wt3zOc9EA5VDQnVhgzkTtjWuG3yLOVOvjCNVaHZ-IMpTcXD9HUxbEGKJk9W6gI_mDw1PqWLU8gSKvVjmQmhq-n5Qjc1jnSVV1Q84tUH4UdmMhoOI1fwYHgIdqT7HGjXqYVtN37hSkwfKa727PorsD0>" %}

Now your Workflow is set up and ready to go with the Action Add To Affiliate Campaign!


---

# 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://software-help-docs.gitbook.io/knowledge-base/software-guide/workflow-actions/workflow-action-update-affiliate.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.
