Personalized Community is here!
Quickly customize your community to find the content you seek.
Microsoft Customer Co-creation
Help impact how the tools and services you rely on are developed. Microsoft Customer Co-creation connects you directly with our engineers so you can provide feedback before a single line of code is written. Interested? Learn more at Microsoft Customer Co-creation
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
In this series of post, we’ll see how we can use Azure Durable function(an extension of Azure Function which works on durable task framework) with D365 CE. We can find more details about Durable functions, it’s application patterns, pricing and the way it works here: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview.
This series of post is divided into 6 parts:Part 1: Starting with Azure Durable Function in VS 2019Part 2: Using Azure Durable Function to perform CRUD operation in D365 CEPart 3: Parameterize Azure Durable Function to perform CRUD operation in D365 CEPart 4: Register WebHook using Plug-in Registration Tool for parameterized Azure Durable FunctionPart 5: Invoke webhook using custom global action Part 6: Invoke custom global action using JS based on business requirement
In this post, we’ll discuss Part 1 mentioned above. Let’s get started.
We can verify if it’s installed or not following below mentioned steps:Search for Visual Studio Installer in Windows and open it.
Select VS 2019 and click Modify.
If Azure Development is already selected then it’s installed. If it’s not selected then you can select and go ahead with installing it before starting with Durable Function.
Once Azure Development workload is installed, Open VS 2019 and click Create a New Project as shown below:
Select Azure Function and click Next.
Give a name and click Create.
Make sure Azure Functions v2 is selected in the dropdown and select Empty trigger. Click Create.
Once the project is loaded, Right click on project –> Click Add –> New Azure Function as shown below:
Give a Name –> Click Add.
Select Durable Functions Orchestration and click OK.
Once done, we can see that there are 3 azure functions created automatically. Brief information about these functions(the function names can be changed though which we’ll do in the next post of this series):AccommodationPayments_HttpStart: It is the entry point of durable function which gets triggered through an HttpRequest(get/post) and the prime job of this function is to start the orchestration instance(AccommodationPayments azure function).AccommodationPayments: The orchestration function which calls the activity function(AccommodationPayments_Hello) which actually does the work.AccommodationPayments_Hello: The activity function which actually does the work.
In the next post, we’ll see how we can use Durable function to perform CRUD operation in D365 CE.
Hope it helps !!
Business Applications communities