If you're like most D365 organizations, you use background workflows. Depending on the nature of your business, you likely have custom plugins embedded in many of those background workflows. While Microsoft hasn't officially announced the deprecation of background workflows, they are recommending that you transition to using MS Flows.
To prepare for this transition, we've been brainstorming how we will convert them to flows, specifically those that have custom plugins. Some very basic plugins can be replaced with flow logic (specifically, items that simply query a list of records or update basic fields several records in a given list) and those that make more sense to keep as code can be replaced with HTTPTrigger functions.
Creating an HttpTrigger function is fairly simple to set up in an Azure function app. You can create it directly in the portal. Once created, it will automatically generate an Http url for you and then you can add your code. In the example below, I have 3 inputs, perform some logic and then return the response as a JSON object:
You can then easily add your HTTPTrigger function to a flow:
The steps in the flow above are the following:
Flow triggers based on some change in Dynamics
Then it retrieves the correct HTTP Trigger URL (because they may be different between Dev and PRD). The URL will be stored in an Environment Variable unique to each environment.
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.