Recently, while deploying Azure Function from Visual Studio, we got an error "Web Deploy cannot modify the file on the Destination because it is locked by an external process". To fix this issue, we created an application setting. There are 2 ways to do this: Create an Application Setting in the Function App in Azure … Continue reading Azure Function: Web Deploy cannot modify the file on the Destination because it is locked by an external process
Category: Azure Function
D365: Download SharePoint document, attach to Email using PowerAutomate and Azure Function
In this post, we had discussed how to upload document to SharePoint using PowerAutomate. Here, we'll discuss how to download that document and attach it to an email activity. We'll extend the same PowerAutomate we were using in the previous post and will also see how to execute HTTP Triggered Azure Function from PowerAutomate. So, … Continue reading D365: Download SharePoint document, attach to Email using PowerAutomate and Azure Function
Azure: Schedule Azure Function in local time zone
Recently, we were working on Timer triggered Azure functions. One of them was required to run at 2AM Australia time(UTC+10). Azure Function uses 6 value CRON expression {second} {minute} {hour} {day} {month} {day-of-week}, not the regular one with 5 values. So, we set the azure function timer with CRON expression "0 0 2 * * … Continue reading Azure: Schedule Azure Function in local time zone
D365: Post custom message to Session Enabled Service Bus Queue C#
In one of my previous posts, https://ajitpatra.com/2019/12/09/d365-post-custom-message-to-azure-service-bus-queue-c/, we had gone through how to post custom message to a service bus queue. In this post, we'll see how we can post the same message to a session enabled queue. We have to make few lines of code changes in PostMessageToServiceBusQueue method of this post as shown … Continue reading D365: Post custom message to Session Enabled Service Bus Queue C#
PowerApps: ModelDrivenFormIntegration control not available on App Start
Recently, we were working on embedded canvas app on Contact entity form. The requirement was to show related records of the Contact record based on certain condition when the App is started. We created the App in make.powerapps.com and created an Azure Function which will take input as GUID of Contact record and will return … Continue reading PowerApps: ModelDrivenFormIntegration control not available on App Start
Using Service Bus Triggered Azure Durable Function with D365 CE
In this post, we'll see how we can use Service Bus triggered Azure Durable Function with D365 CE to perform CRUD operation. Requirement: When Rate Amount(custom field) field changes in Rate(custom entity) record, update Rate(custom field) field on related(Revenue Schedule Line(custom entity)) records of the corresponding Rate record. Of course, there are multiple ways to … Continue reading Using Service Bus Triggered Azure Durable Function with D365 CE
D365: Service Bus Triggered Function Error: Cannot bind parameter ‘parameterName’ to type MessageReceiver. Make sure the parameter Type is supported by the binding
Recently, we were working on Service Bus Triggered Azure Durable Function. After writing the necessary code, we deployed the Durable Function to Azure. After deploying, while trying to test the function, we faced one weird issue saying "Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'AzureFunctionName'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'parameterName' to type MessageReceiver. Make sure the parameter … Continue reading D365: Service Bus Triggered Function Error: Cannot bind parameter ‘parameterName’ to type MessageReceiver. Make sure the parameter Type is supported by the binding
D365: Service Bus Triggered Function error: Connection string ‘AzureWebJobsServiceBus’ is missing or empty
Recently, while working on Service Bus triggered Azure Durable Function, we got an error saying "The function runtime is unable to start. Microsoft.Azure.WebJobs.ServiceBus: Microsoft Azure WebJobs SDK ServiceBus connection string 'AzureWebJobsServiceBus' is missing or empty". Below is the code that we were using: [FunctionName("UpdateGlobalRatesOnRSLs")] public static async Task Run([ServiceBusTrigger("%QueueName%")] Message message, MessageReceiver messageReceiver, string lockToken, … Continue reading D365: Service Bus Triggered Function error: Connection string ‘AzureWebJobsServiceBus’ is missing or empty
D365: “The user is not a member of the organization” error while connecting to CE
Recently, we were working on connecting to CE to do some CRUD operation using Azure function. We were using Client ID(Application ID) and Client Secret of the app registered on Azure Active Directory. We had provided the necessary API(Dynamics CRM) Permission (delegated "user_impersonation") to the app. While running the Azure function, we were getting the … Continue reading D365: “The user is not a member of the organization” error while connecting to CE
D365: The webhook call failed because the http request received non-success httpStatus code
Recently, while trying to invoke webhook using custom global action we got an error saying "The webhook call failed because the http request received non-success httpStatus code. Please check your webhook request handler." We were using JS to call a custom global action which was used to invoke webhook which in turn was used to … Continue reading D365: The webhook call failed because the http request received non-success httpStatus code
D365: Azure Durable Function with D365 CE – Part 6
In the previous post, we saw how to invoke webhook using custom global action and passed plugin execution context to the webhook. In this last post of this series, we'll see how to execute custom global action from JS on form load. Using CRM Rest Builder, we can get the HttpRequest for executing action which … Continue reading D365: Azure Durable Function with D365 CE – Part 6
D365: Azure Durable Function with D365 CE – Part 5
In the previous post, we saw how we can register webhook for the azure durable function. In this post we'll see how we can use custom global action to invoke webhook and pass plugin execution context to the webhook. Let's go to D365 instance and create a global action as shown below: We have passed … Continue reading D365: Azure Durable Function with D365 CE – Part 5
D365: Azure Durable Function with D365 CE – Part 4
In the previous post, we saw how we can parameterize Azure durable function and deploy it to Azure. In this post we'll see how we can register a webhook for the azure durable function using plug-in registration tool. From the last post, we have Azure durable function URL copied as shown below: Now, let's open … Continue reading D365: Azure Durable Function with D365 CE – Part 4
D365: Azure Durable Function with D365 CE – Part 3
In the previous post, we saw how we can implement durable function for CRUD operation in D365 and test it using Postman. In this post we'll see how we can parameterize durable function so that we can pass parameters from external system to durable function and process it further. Let's take a simple example as … Continue reading D365: Azure Durable Function with D365 CE – Part 3
D365: Azure Durable Function with D365 CE – Part 2
In the previous post, we saw how we created the default template of durable function. In this post, we'll modify that to do some CRUD operation in D365 CE. For demo purpose, let's pick a simple scenario i.e. Retrieve related records(accommodation payments) of a particular Contact record and update their field(Expected Refund Due Date a … Continue reading D365: Azure Durable Function with D365 CE – Part 2
D365: Azure Durable Function with D365 CE – Part 1
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 … Continue reading D365: Azure Durable Function with D365 CE – Part 1