未加星标

Dynamics 365 CE and Azure Function Part 1

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二05 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

Introduction

This is our first article in the series, of Dynamics 365 and Azure function integration. We will be discussing how we can import data fromCSV file to Dynamics 365 using an Azure function, during these series we will be discussing the following options,

1. Introduction to Azure Function

2. Connecting Azure function to Dynamics 365

3. Setup Server to Server authentication between Azure and Dynamics 365

4. Deleting blob storage after function execution.

5. Trigger Azure function from Microsoft Flow.

In this article, we will be discussing basic details about azure function.

What is Azure Function?

In a simple definition Azure function is a piece of code which can be executed on demand or can be bound to some event just like traditional SQL triggers, where we have some code that executes because of some event. The beauty of Azure function is its serverless capability which means you don’t need special infrastructure to host and manage it and you need to only pay when your function is executing.

An azure function can be the lifesaver sometimes when we want to keep our Dynamics 365 CE integration logic out of Dynamics 365 CE and we don’t have any infrastructure to host that logic. We can use an Azure function for the different type of integration based on the business requirements. In our series, we are going to discuss importing data into Dynamics 365 with the help of an Azure function. An azure function can be written in Visual Studio and deployed to Azure or we can directly create an Azure function in the Azure portal. In our example, we are going to write Azure Function in Azure Portal. So let’s get started.

If you don’t have a Dynamics 365 CE environment, you can follow our earlier article tosetup 30 days trial and can also setup a free Microsoft Azure trial .

While building any azure component it is recommended to create them under a particular resource group so that it can be managed efficiently as a group. So let’s first create our resource group.

Connect to your Azure environment and create Resource Group using the following steps.
Dynamics 365 CE and Azure Function Part 1

Once the resource group is created, we can add an azure function like following.


Dynamics 365 CE and Azure Function Part 1

Now we have your azure function app and we can add a function which can be associated with the different trigger, for our requirement we are going to use blob trigger which will trigger azure function as soon as a new excel file will be uploaded to azure blob storage, so click on + and create blob trigger


Dynamics 365 CE and Azure Function Part 1

When blob trigger is added, we will get a run.csx file which is a c# script file where we are going to write our code logic.


Dynamics 365 CE and Azure Function Part 1

Our azure function trigger execution will start from Run method which takes the following three parameters.

Stream This will hold our blob storage (CSV file in our case)

name This will be the name of the CSV file

TraceWrite We can use this class to generate logging.

Now we got an overview of the azure function, In the next article we are going to discuss code to read CSV file and upload it to Dynamics 365 so stay tuned !!

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

tags: function,Azure,Dynamics,azure,our,will
分页:12
转载请注明
本文标题:Dynamics 365 CE and Azure Function Part 1
本站链接:https://www.codesec.net/view/604212.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(16)