calling logic apps from azure functions
I want to use logic apps for making the workflow. I'm aware that logic apps provide the HTTP Request (endpoint) as the trigger, which can be used in order to start the workflow of the logic app. But I want to perform some tasks such as CRUD operations with database for which azure functions are preferred.
I was thinking to call the logic apps from the azure functions to achieve my goal. Is that the correct approach?If yes, then how can I do so using node or python.
Or should I call the functions within the logic apps? If I am trying to do so, then it gives me some error (where n customization has been done) that file not found.
python node.js
add a comment |
I want to use logic apps for making the workflow. I'm aware that logic apps provide the HTTP Request (endpoint) as the trigger, which can be used in order to start the workflow of the logic app. But I want to perform some tasks such as CRUD operations with database for which azure functions are preferred.
I was thinking to call the logic apps from the azure functions to achieve my goal. Is that the correct approach?If yes, then how can I do so using node or python.
Or should I call the functions within the logic apps? If I am trying to do so, then it gives me some error (where n customization has been done) that file not found.
python node.js
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.
– 18bhavna08
Nov 26 '18 at 6:23
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57
add a comment |
I want to use logic apps for making the workflow. I'm aware that logic apps provide the HTTP Request (endpoint) as the trigger, which can be used in order to start the workflow of the logic app. But I want to perform some tasks such as CRUD operations with database for which azure functions are preferred.
I was thinking to call the logic apps from the azure functions to achieve my goal. Is that the correct approach?If yes, then how can I do so using node or python.
Or should I call the functions within the logic apps? If I am trying to do so, then it gives me some error (where n customization has been done) that file not found.
python node.js
I want to use logic apps for making the workflow. I'm aware that logic apps provide the HTTP Request (endpoint) as the trigger, which can be used in order to start the workflow of the logic app. But I want to perform some tasks such as CRUD operations with database for which azure functions are preferred.
I was thinking to call the logic apps from the azure functions to achieve my goal. Is that the correct approach?If yes, then how can I do so using node or python.
Or should I call the functions within the logic apps? If I am trying to do so, then it gives me some error (where n customization has been done) that file not found.
python node.js
python node.js
asked Nov 23 '18 at 9:44
18bhavna0818bhavna08
84
84
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.
– 18bhavna08
Nov 26 '18 at 6:23
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57
add a comment |
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.
– 18bhavna08
Nov 26 '18 at 6:23
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.
NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at .. However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.– 18bhavna08
Nov 26 '18 at 6:23
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.
NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at .. However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.– 18bhavna08
Nov 26 '18 at 6:23
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57
add a comment |
2 Answers
2
active
oldest
votes
For calling Azure Function from a Logic App it's pretty straightforward without any code, only you need to use Azure Function connector and for example You have a HTTP trigger logic app so you can connect it with Azure Function after the incoming request as part of your work flow as shown below:

For calling HTTP Trigger's Logic App from your Azure Function it will be also straightforward using any HTTP client based on your programming language and there is no best practice here related to Logic App calling like you asked in your question but you should follow the normal code standards while dealing with HTTP calls based on your programming language for example this is a C# example:

Thanks for the answer. I know it's pretty straight forward but I'm getting the errorNotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..'while following the steps mentioned in the documentation or you mentioned above in the screenshot.
– 18bhavna08
Nov 26 '18 at 16:54
add a comment |
Either calling azure logic apps from azure functions, or do the same reversely, as @Thomas said, you need to use a connector to integrate Azure Logic Apps with Azure Functions. And Azure Logic Apps offers it - a build-in connector for Azure Function.
There is a section introduces Call logic apps from functions, as below, and the interal link show more details. Even there is a sample scenario Trigger logic apps with Azure Functions and Azure Service Bus.
When you want to trigger a logic app from inside an Azure function,
the logic app must start with a trigger that provides a callable
endpoint. For example, you can start the logic app with the HTTP,
Request, Azure Queues, or Event Grid trigger. Inside your function,
send an HTTP POST request to the trigger's URL, and include the
payload you want that logic app to process. For more information, see
Call, trigger, or nest logic apps.
Call functions from logic app, you can use the same connector as the document introduced, or a HTTP connector can do the same if using HTTP trigger on Azure Functions normally, even other triggers of Azure Functions can be used to integrate with logic Apps using the related connectors.
Hope it helps.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444139%2fcalling-logic-apps-from-azure-functions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For calling Azure Function from a Logic App it's pretty straightforward without any code, only you need to use Azure Function connector and for example You have a HTTP trigger logic app so you can connect it with Azure Function after the incoming request as part of your work flow as shown below:

For calling HTTP Trigger's Logic App from your Azure Function it will be also straightforward using any HTTP client based on your programming language and there is no best practice here related to Logic App calling like you asked in your question but you should follow the normal code standards while dealing with HTTP calls based on your programming language for example this is a C# example:

Thanks for the answer. I know it's pretty straight forward but I'm getting the errorNotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..'while following the steps mentioned in the documentation or you mentioned above in the screenshot.
– 18bhavna08
Nov 26 '18 at 16:54
add a comment |
For calling Azure Function from a Logic App it's pretty straightforward without any code, only you need to use Azure Function connector and for example You have a HTTP trigger logic app so you can connect it with Azure Function after the incoming request as part of your work flow as shown below:

For calling HTTP Trigger's Logic App from your Azure Function it will be also straightforward using any HTTP client based on your programming language and there is no best practice here related to Logic App calling like you asked in your question but you should follow the normal code standards while dealing with HTTP calls based on your programming language for example this is a C# example:

Thanks for the answer. I know it's pretty straight forward but I'm getting the errorNotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..'while following the steps mentioned in the documentation or you mentioned above in the screenshot.
– 18bhavna08
Nov 26 '18 at 16:54
add a comment |
For calling Azure Function from a Logic App it's pretty straightforward without any code, only you need to use Azure Function connector and for example You have a HTTP trigger logic app so you can connect it with Azure Function after the incoming request as part of your work flow as shown below:

For calling HTTP Trigger's Logic App from your Azure Function it will be also straightforward using any HTTP client based on your programming language and there is no best practice here related to Logic App calling like you asked in your question but you should follow the normal code standards while dealing with HTTP calls based on your programming language for example this is a C# example:

For calling Azure Function from a Logic App it's pretty straightforward without any code, only you need to use Azure Function connector and for example You have a HTTP trigger logic app so you can connect it with Azure Function after the incoming request as part of your work flow as shown below:

For calling HTTP Trigger's Logic App from your Azure Function it will be also straightforward using any HTTP client based on your programming language and there is no best practice here related to Logic App calling like you asked in your question but you should follow the normal code standards while dealing with HTTP calls based on your programming language for example this is a C# example:

answered Nov 26 '18 at 10:56
MarzoukMarzouk
1,06021234
1,06021234
Thanks for the answer. I know it's pretty straight forward but I'm getting the errorNotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..'while following the steps mentioned in the documentation or you mentioned above in the screenshot.
– 18bhavna08
Nov 26 '18 at 16:54
add a comment |
Thanks for the answer. I know it's pretty straight forward but I'm getting the errorNotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..'while following the steps mentioned in the documentation or you mentioned above in the screenshot.
– 18bhavna08
Nov 26 '18 at 16:54
Thanks for the answer. I know it's pretty straight forward but I'm getting the error
NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..' while following the steps mentioned in the documentation or you mentioned above in the screenshot.– 18bhavna08
Nov 26 '18 at 16:54
Thanks for the answer. I know it's pretty straight forward but I'm getting the error
NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..' while following the steps mentioned in the documentation or you mentioned above in the screenshot.– 18bhavna08
Nov 26 '18 at 16:54
add a comment |
Either calling azure logic apps from azure functions, or do the same reversely, as @Thomas said, you need to use a connector to integrate Azure Logic Apps with Azure Functions. And Azure Logic Apps offers it - a build-in connector for Azure Function.
There is a section introduces Call logic apps from functions, as below, and the interal link show more details. Even there is a sample scenario Trigger logic apps with Azure Functions and Azure Service Bus.
When you want to trigger a logic app from inside an Azure function,
the logic app must start with a trigger that provides a callable
endpoint. For example, you can start the logic app with the HTTP,
Request, Azure Queues, or Event Grid trigger. Inside your function,
send an HTTP POST request to the trigger's URL, and include the
payload you want that logic app to process. For more information, see
Call, trigger, or nest logic apps.
Call functions from logic app, you can use the same connector as the document introduced, or a HTTP connector can do the same if using HTTP trigger on Azure Functions normally, even other triggers of Azure Functions can be used to integrate with logic Apps using the related connectors.
Hope it helps.
add a comment |
Either calling azure logic apps from azure functions, or do the same reversely, as @Thomas said, you need to use a connector to integrate Azure Logic Apps with Azure Functions. And Azure Logic Apps offers it - a build-in connector for Azure Function.
There is a section introduces Call logic apps from functions, as below, and the interal link show more details. Even there is a sample scenario Trigger logic apps with Azure Functions and Azure Service Bus.
When you want to trigger a logic app from inside an Azure function,
the logic app must start with a trigger that provides a callable
endpoint. For example, you can start the logic app with the HTTP,
Request, Azure Queues, or Event Grid trigger. Inside your function,
send an HTTP POST request to the trigger's URL, and include the
payload you want that logic app to process. For more information, see
Call, trigger, or nest logic apps.
Call functions from logic app, you can use the same connector as the document introduced, or a HTTP connector can do the same if using HTTP trigger on Azure Functions normally, even other triggers of Azure Functions can be used to integrate with logic Apps using the related connectors.
Hope it helps.
add a comment |
Either calling azure logic apps from azure functions, or do the same reversely, as @Thomas said, you need to use a connector to integrate Azure Logic Apps with Azure Functions. And Azure Logic Apps offers it - a build-in connector for Azure Function.
There is a section introduces Call logic apps from functions, as below, and the interal link show more details. Even there is a sample scenario Trigger logic apps with Azure Functions and Azure Service Bus.
When you want to trigger a logic app from inside an Azure function,
the logic app must start with a trigger that provides a callable
endpoint. For example, you can start the logic app with the HTTP,
Request, Azure Queues, or Event Grid trigger. Inside your function,
send an HTTP POST request to the trigger's URL, and include the
payload you want that logic app to process. For more information, see
Call, trigger, or nest logic apps.
Call functions from logic app, you can use the same connector as the document introduced, or a HTTP connector can do the same if using HTTP trigger on Azure Functions normally, even other triggers of Azure Functions can be used to integrate with logic Apps using the related connectors.
Hope it helps.
Either calling azure logic apps from azure functions, or do the same reversely, as @Thomas said, you need to use a connector to integrate Azure Logic Apps with Azure Functions. And Azure Logic Apps offers it - a build-in connector for Azure Function.
There is a section introduces Call logic apps from functions, as below, and the interal link show more details. Even there is a sample scenario Trigger logic apps with Azure Functions and Azure Service Bus.
When you want to trigger a logic app from inside an Azure function,
the logic app must start with a trigger that provides a callable
endpoint. For example, you can start the logic app with the HTTP,
Request, Azure Queues, or Event Grid trigger. Inside your function,
send an HTTP POST request to the trigger's URL, and include the
payload you want that logic app to process. For more information, see
Call, trigger, or nest logic apps.
Call functions from logic app, you can use the same connector as the document introduced, or a HTTP connector can do the same if using HTTP trigger on Azure Functions normally, even other triggers of Azure Functions can be used to integrate with logic Apps using the related connectors.
Hope it helps.
answered Nov 26 '18 at 8:41
Peter PanPeter Pan
12.3k3824
12.3k3824
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444139%2fcalling-logic-apps-from-azure-functions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Calling a function from logic app shuld be easy, there is an existing connector. what is the error you're getting ?
– Thomas
Nov 24 '18 at 8:26
@Thomas I am getting the following error when I'm calling the azure functions from logic apps using connectors.
NotFound. System.IO.FileNotFoundException: Could not find file 'D:homesitewwwrootazure-from-logic'. File name: 'D:homesitewwwrootazure-from-logic' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at ..However, I was able to successfully call the logic apps from azure function in node. But, if above error can be resolved then it would be grateful.– 18bhavna08
Nov 26 '18 at 6:23
but this error is a azure function error ? not a logic app function. Did you use the azure function connector for logic app ? or you can use the http trigger action
– Thomas
Nov 26 '18 at 6:33
This is the error which I'm getting while using the azure function as the connector from the logic apps, at the time I create the azure function , which gives me some automatically generated code. May be I am missing something,
– 18bhavna08
Nov 26 '18 at 16:57