Azure Function: Web Deploy cannot modify the file on the Destination because it is locked by an external process

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

Advertisement

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

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: Post custom message to Azure Service Bus Queue C#

In this post, we'll see how we can post custom message to Azure Service Bus Queue. Let's go to Azure portal and Create a Service Bus Namespace. Search for Service Bus Click Create Give a Name and Click on Create After creating Service Bus Namespace, Browse through it and go to Shared Access Policies. Click … Continue reading D365: Post custom message to Azure Service Bus Queue C#

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 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

Azure: Copy Data from D365 CE to Azure SQL Database using Azure Data Factory

In this blog post, we'll see how to copy data of an entity "Contact" in D365 CE to Azure SQL Database. Let's follow the below steps to see it in action. Login to Azure portal.Create Azure SQL Database where we need to copy the data. Click Create a resource --> Databases -->  SQL Database Give … Continue reading Azure: Copy Data from D365 CE to Azure SQL Database using Azure Data Factory

Azure: Execute SSIS Package using Azure Data Factory – Part 2

In the previous post, we created the required Azure resources. In the last step of the previous post, we created Azure SSIS IR which is basically responsible for creating SSISDB in the Azure SQL Server where we'll deploy the SSIS package. In this demo, we are going to execute a SSIS package which will load … Continue reading Azure: Execute SSIS Package using Azure Data Factory – Part 2

Azure: Execute SSIS Package using Azure Data Factory – Part 1

In this blog post series, we'll learn how to execute SSIS package using Azure Data Factory. This topic is divided into 2 parts: In the first part we'll create the required Azure resources and in the second part we'll see how to deploy and execute the package. To begin we need following Azure resources: Azure … Continue reading Azure: Execute SSIS Package using Azure Data Factory – Part 1

SSMS: Integration Services Catalog node not visible

Recently, while working on Azure SQL Server to execute SSIS package, we found a strange issue. We created the Azure SQL Server from Azure Portal. We designed the SSIS package using SSDT. To deploy package to Azure SQL Server and execute there we need Azure-SSIS Integration Runtime(Azure-SSIS IR) to be setup. We created Azure Data … Continue reading SSMS: Integration Services Catalog node not visible

Azure: Copy Data from CSV file to D365 instance using Azure Data Factory

In this post, we'll see how to upload data in CSV file to D365 instance using Azure Data Factory. We'll need following Azure resources for this demo: Azure Data Factory Blob Storage Let's go through the below steps to see it in action: Login to Azure Portal Click on Create a resource --> Select Storage … Continue reading Azure: Copy Data from CSV file to D365 instance using Azure Data Factory

Azure: Copy data from one database to another using Azure Data Factory – II

In the previous post, we discussed how to create Azure SQL Server and Azure SQL Database. Now that we are ready with source data/table and destination table, let's create Azure Data Factory to copy the data. 3. Azure Data Factory: Click on Create a resource --> Analytics --> Data Factory Fill the mandatory fields and … Continue reading Azure: Copy data from one database to another using Azure Data Factory – II

Azure: Copy data from one database to another using Azure Data Factory – I

In this post, we will talk about how to copy data of a table from one database to another using Azure. Here we are using the following Azure resources: Azure SQL Server Azure SQL Database Azure Data Factory To begin, let's login to Azure portal. After successful login let's go through the below steps to see … Continue reading Azure: Copy data from one database to another using Azure Data Factory – I

Azure: Error while connecting to Azure SQL Server “Cannot open server ‘…’ requested by the login. Client with IP address ‘…’ is not allowed to access the server”

Recently, while accessing azure SQL server from SQL Server Management Studio, we got the below error:  "Cannot open server 'server_name' requested by the login. Client with IP address 'xxx.xxx.xxx.xxx' is not allowed to access the server". To fix this issue, in Azure portal, we added the IP address of machine from which we were trying … Continue reading Azure: Error while connecting to Azure SQL Server “Cannot open server ‘…’ requested by the login. Client with IP address ‘…’ is not allowed to access the server”

Azure: Web Job Deployment Error “The local data store is currently in use by another operation”

Recently, we had written a batch job to connect to D365 and do some operation on a schedule. While deploying the batch job from Visual Studio as a web job we got the below error: "The local data store is currently in use by another operation. Please wait and then try your operation again. If … Continue reading Azure: Web Job Deployment Error “The local data store is currently in use by another operation”

Azure Service Bus Queue Integration with D365 – Part 2

In the previous post of this series, we saw how to create service bus queue and register the service endpoint. In this blog, we'll continue with the 2nd part of this series. Part 2: Create account in D365 and the message appears in Service Bus Queue and reading the message from queue Let's login to … Continue reading Azure Service Bus Queue Integration with D365 – Part 2

Azure Service Bus Queue Integration with D365 – Part 1

In this series, we'll see how we can integrate Azure Service Bus Queue with D365. This series has been divided into 2 parts: Part 1: How we can create a service bus queue in Azure portal and registration of service endpoint using plugin registration tool Part 2: Do some operation in D365 and the message … Continue reading Azure Service Bus Queue Integration with D365 – Part 1