# Using Runtime User Connections In Recipe Functions

This guide will walk you through using Runtime user connections in Recipe functions.

In this guide, we'll cover:

# Prerequisites

To complete the steps in this guide, you need:

  • The following privileges in Workato:
    • Create/edit Recipes
    • View/edit Runtime user connections
    • Create/edit Connections

# Step 1: Create A Recipe Function


In your account, create a new Recipe function. Note: The recipe must use the Recipe functions - New function call trigger.


Add steps and actions.


Save and test the recipe as you normally would.

# Step 2: Enable The Recipe's Runtime User Connections Setting

When finished creating the recipe, you'll need to enable the Runtime user connections setting:


Navigate to the Settings tab of the recipe you created in Step 1.


In the Runtime user connections section, click the toggle next to the connection you want to enable.

When this recipe is run, users will be prompted to provide their credentials for this connection.

# Step 3: Calling The Recipe And Swapping Connections

The last step is to define how recipes using the recipe from Step 1 use runtime user connections:


Create a new recipe OR open an existing recipe.


Add a new step using the Action in an app option.


In the App tab, select the Recipe functions by Workato app.


In the Recipe to call field, select the recipe you created in Step 1.


In the Connection overrides section, configure the connections to be used at runtime.


When finished editing the recipe, click Save.

# What's Next?

Last updated: 11/17/2021, 9:44:16 PM