Skip to content

Commit 8590367

Browse files
committed
Merge branch 'us544833-dks-3' of https://github.com/dksimpson/azure-docs-pr into us544833-dks-3
Pull updates
2 parents c8c0514 + f328382 commit 8590367

1 file changed

Lines changed: 27 additions & 22 deletions

File tree

articles/logic-apps/call-azure-functions-from-workflows.md

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Call Azure Functions from workflows in Azure Logic Apps
3-
description: Learn how to call and run functions in Azure Functions from workflows in Azure Logic Apps. Extend workflows with custom code, advanced computations, and dynamic data processing.
4-
services: logic-apps, azure-functions
2+
title: Call Azure Functions from Workflows
3+
description: Call and run functions in Azure Functions from workflows in Azure Logic Apps by creating custom code to perform advanced calculations or process dynamic data.
4+
services: azure-logic-apps, azure-functions
55
ms.suite: integration
6-
ms.reviewer: estfan, azla
6+
ms.reviewers: estfan, azla
77
ms.topic: how-to
88
ai.usage: ai-assisted
99
ms.date: 03/10/2026
@@ -15,28 +15,33 @@ ms.custom: sfi-image-nochange
1515

1616
[!INCLUDE [logic-apps-sku-consumption-standard](../../includes/logic-apps-sku-consumption-standard.md)]
1717

18-
Azure Logic Apps and Azure Functions work together so that you can extend and enhance your integration workflows with custom code execution, advanced computations, and dynamic data processing. When you create functions in Azure Functions, you can call and run these functions from your workflows. The Azure Functions platform lets you run code without building a complete app or setting up separate infrastructure and provides cloud-based computing that can perform tasks. For example:
18+
To extend your workflows with custom code that performs advanced computations or processes dynamic data, create and call functions in Azure Functions from workflows in Azure Logic Apps. When you create functions in Azure Functions, you can complete tasks like the following:
1919

20-
- Extend your workflow's behavior by running functions created by using C# or Node.js.
21-
- Perform calculations in your workflow.
20+
- Run functions created by using C# or Node.js.
21+
- Perform advanced calculations in your workflow.
2222
- Apply advanced formatting or compute fields in your workflow.
2323

24-
This guide shows how to call and run a function in Azure Functions from your Azure Logic Apps workflow, whether you're using the Consumption or Standard plan. You also learn about prerequisites, limitations, and tips for working with Azure Functions to ensure seamless integration and optimal performance. For more information, see [Azure Functions](../azure-functions/functions-overview.md) and [Azure Logic Apps](logic-apps-overview.md).
24+
This guide shows how to call and run a function in Azure Functions from your Consumption or Standard workflow in Azure Logic Apps. You also learn about the prerequisites, limitations, and tips for working with Azure Functions to ensure seamless integration and optimal performance.
2525

26-
> [!NOTE]
26+
> [!TIP]
2727
>
28-
> If you want to run code without using Azure Functions, see:
28+
> To run code without using Azure Functions, see:
2929
>
3030
> - [Run code snippets in workflows](logic-apps-add-run-inline-code.md)
3131
> - [Create and run .NET code from Standard workflows in Azure Logic Apps](create-run-custom-code-functions.md)
3232
33+
For more information, see:
34+
35+
- [Azure Functions](../azure-functions/functions-overview.md)
36+
- [Azure Logic Apps](logic-apps-overview.md)
37+
3338
## Limitations
3439

35-
For Azure Functions to operate correctly in your workflow, the following limitations apply:
40+
For Azure Functions to operate correctly in your workflow, review the following limitations:
3641

3742
- Function app resources must use either the .NET or Node.js runtime stack.
3843

39-
- Functions must use either C# or JavaScript code.
44+
- Functions must be written in either C# or JavaScript code.
4045

4146
- Functions must use the **HTTP trigger** template.
4247

@@ -60,7 +65,7 @@ For Azure Functions to operate correctly in your workflow, the following limitat
6065

6166
- An [Azure function app resource](../azure-functions/functions-get-started.md), which can contain one or more Azure functions.
6267

63-
Make sure to use the same Azure subscription for your function app resource and logic app resource.
68+
Make sure that your function app resource and logic app resource exist in the same Azure subscription.
6469

6570
- The Azure function to call from your workflow.
6671

@@ -115,7 +120,7 @@ For Azure Functions to operate correctly in your workflow, the following limitat
115120

116121
For example, you can start the workflow with the general **HTTP** or **Request** trigger, or you can use a service-based trigger, such as **Azure Queues** or **Event Grid**. Inside your function, send an HTTP POST request to the trigger's URL and include the payload that you want your secondary workflow to process. For more information, see [Call, trigger, or nest logic app workflows](logic-apps-http-endpoint.md).
117122

118-
## Tips for working with Azure functions
123+
## Tips for working with Azure Functions
119124

120125
<a name="open-ai-definition"></a>
121126

@@ -131,7 +136,7 @@ To set up your function app so that your workflow can find and use functions tha
131136

132137
1. Under **Allowed Origins**, add the asterisk (*) wildcard character, remove any origins in the list, and then select **Save**.
133138

134-
:::image type="content" source="media/call-azure-functions-from-workflows/function-cors-origins.png" alt-text="Screenshot that shows Azure portal, CORS pane, and the * wildcard character entered under Allowed Origins." lightbox="media/call-azure-functions-from-workflows/function-cors-origins.png":::
139+
:::image type="content" source="media/call-azure-functions-from-workflows/function-cors-origins.png" alt-text="Screenshot that shows the Azure portal, function app, and CORS pane with * entered under Allowed Origins." lightbox="media/call-azure-functions-from-workflows/function-cors-origins.png":::
135140

136141
### Access the property values in HTTPS requests
137142

@@ -188,7 +193,7 @@ To call an Azure function from your workflow, add that function like any other a
188193

189194
### [Consumption](#tab/consumption)
190195

191-
1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource, and then open the workflow in the designer.
196+
1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource. Open the workflow in the designer.
192197

193198
1. In the designer, follow the [general steps](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action) to add the **Azure Functions** action named **Choose an Azure function**.
194199

@@ -198,7 +203,7 @@ To call an Azure function from your workflow, add that function like any other a
198203

199204
1. Select the function, and then select **Add action**, for example:
200205

201-
:::image type="content" source="media/call-azure-functions-from-workflows/select-function-app-function-consumption.png" alt-text="Screenshot that shows the Consumption workflow opened in the Logic app designer with a selected function app and function in the Add an action pane.":::
206+
:::image type="content" source="media/call-azure-functions-from-workflows/select-function-app-function-consumption.png" alt-text="Screenshot that shows the Consumption workflow designer with a selected function app and function in Add an action.":::
202207

203208
1. After the function's information box appears, follow these steps:
204209

@@ -214,23 +219,23 @@ To call an Azure function from your workflow, add that function like any other a
214219

215220
The following example specifies a JSON object with the `content` attribute and the **From** output value from the email trigger as the **Request Body** value:
216221

217-
:::image type="content" source="media/call-azure-functions-from-workflows/function-request-body-example-consumption.png" alt-text="Screenshot that shows a Consumption workflow and a function with a Request Body example for the context object payload.":::
222+
:::image type="content" source="media/call-azure-functions-from-workflows/function-request-body-example-consumption.png" alt-text="Screenshot that shows a Consumption workflow with a Request Body example for the function context object payload.":::
218223

219224
In this case, the context object isn't cast as a string. The object's content is directly added to the JSON payload. The following image shows the finished example:
220225

221-
:::image type="content" source="media/call-azure-functions-from-workflows/request-body-example-complete.png" alt-text="Screenshot that shows a Consumption workflow and a function with a finished Request Body example for the context object payload.":::
226+
:::image type="content" source="media/call-azure-functions-from-workflows/request-body-example-complete.png" alt-text="Screenshot that shows a Consumption workflow and a function with a completed Request Body example for the function context object payload.":::
222227

223228
If you enter a context object other than a JSON token that passes a string, a JSON object, or a JSON array, you receive an error. However, you can cast the context object as a string by enclosing the token in quotation marks (" "). For example, if you wanted to use the **Received Time** output value:
224229

225-
:::image type="content" source="media/call-azure-functions-from-workflows/function-request-body-string-cast-example.png" alt-text="Screenshot that shows a Consumption workflow and a Request Body example that casts a context object as a string.":::
230+
:::image type="content" source="media/call-azure-functions-from-workflows/function-request-body-string-cast-example.png" alt-text="Screenshot that shows a Consumption workflow with a Request Body example that casts a context object as a string.":::
226231

227232
1. To enter other information such as the method to use, request headers, query parameters, or authentication, open the **Advanced parameters** list, and select the parameters you want.
228233

229234
For authentication, your options differ based on your selected function. For more information, see [Enable authentication for functions](#enable-authentication-functions).
230235

231236
### [Standard](#tab/standard)
232237

233-
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource, and then open the workflow in the designer.
238+
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. Open the workflow in the designer.
234239

235240
1. In the designer, follow the [general steps](create-workflow-with-trigger-or-action.md?tabs=standard#add-action) to add the **Azure Functions** action named **Call an Azure function**.
236241

@@ -242,7 +247,7 @@ To call an Azure function from your workflow, add that function like any other a
242247

243248
1. Select the function, and then select **Create new**, for example:
244249

245-
:::image type="content" source="media/call-azure-functions-from-workflows/select-function-app-function-standard.png" alt-text="Screenshot that shows the Standard workflow designer with page with a selected function app and function in a Create connection pane.":::
250+
:::image type="content" source="media/call-azure-functions-from-workflows/select-function-app-function-standard.png" alt-text="Screenshot that shows the Standard workflow designer with a selected function app and function in Create connection.":::
246251

247252
1. After the function's information box appears, follow these steps:
248253

0 commit comments

Comments
 (0)