# 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

1

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

2

Add steps and actions.

3

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:

1

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

2

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:

1

Create a new recipe OR open an existing recipe.

2

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

3

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

5

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

6

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

7

When finished editing the recipe, click Save.


# What's Next?


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