We recently announced the public preview of .NET Framework Custom Code Extensibility for Azure Logic Apps (Standard). In that post, we discussed how to author new code and debug it. We now want to expand upon that scenario and discuss how we can call an existing assembly from our custom code project.
For organizations who have previously made investments in .NET Framework code, they want to bring these investments forward into Azure Logic Apps (Standard). Perhaps you have a helper assembly that you previously called from BizTalk that performs some specific business logic or data transformation. This assembly would be an ideal candidate to bring into the cloud. In this blog post, we are going to discuss exactly how you can do that.
For Logic Apps to call .NET Framework custom code, there is specific plumbing that needs to exist within the custom code for this to happen. More specifically, we have implemented a WorkflowActionTrigger extension, and we require you to decorate a method by providing a FunctionName.
These requirements prevent you from directly calling a referenced assembly directly from a Logic Apps workflow. But, the good news is that you can "wrap" your existing assemblies quite easily so that they can participate in your Logic Apps solution.
To call an existing assembly, please follow these steps:
Conclusion
In this post, we brought in an existing assembly and plugged it into our solution. We discovered that the build tasks that are pre-configured for us in our Functions code project and will take care of bin-placing all assemblies in the correct location within our workflow project. This simplifies the local development of working with workflows and custom code.
Video Content
If you would like to see a video version of this content, please check out the following YouTube video.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.