Integrating PowerApps and D365 for FO
Integrating PowerApps and D365 for FO
Now, when PowerApps application is ready, I’ll show you how you can easily and seamlessly integrate it with D365 for FO. You’ll need D365 for FO spring release’18 or later version (platform update 15 or higher), since this integration feature appeared in spring release’18.
According my scenario I would like to open PowerApps application from D365 for FO customer details page and would like automatically pass tax payer ID from D365 for FO to PowerApps application. To do this, first, open customer details page in D365 for FO, we’ll assume, that tax payer ID is stored in “Government identification – ID number” field. Imagine, that I’m filling in details for new customer and just filled in tax payer ID number, and now I want to fetch all company details using this ID.
D365 for FO customer details page – Tax payer ID field for our scenario
Please, note that starting from D365 for FO spring release’18, there is special PowerApps button in every form. Using this button you can add PowerApps application to any form in D365 for FO.
PowerApps button in D365 for FO forms
Let’s add our “Organization Info” PowerApps application and setup it so that application will automatically get tax payer ID from D365 for FO customer details page. To do this, click “Insert a PowerApp” menu item, you’ll see “Insert a PowerApp” dialog window. You will new PowerApp App ID, this ID looks like GUID and can be found at PowerApp application details page at web PowerApps home.
In “Input data for the PowerApp” select control with “ID number”, value from this control will be automatically passed to the PowerApp. For our app we’ll select thin application size. Now you can click “Insert” button and app will be added to the list of available PowerApps applications for the D365 for FO form (customer details in our case).
Insert a PowerApp dialog
“Organization info” is on the list of available apps
In order to use value from D365 for FO field in PowerApps application, we shall modify our app. Go to PowerApps application designer and setup default value for tax payer ID field in PowerApps application designer. Use global variable “FinOpsInput”, this variable contains input value from D365 for FO form.
Use “FinOpsInput” global variable to supply a default value to PowerApps
Now let’s try to call our PowerApps application from D365 for FO customer details form. Note, that value from “ID number” field has been automatically transferred to PowerApp. In PowerApps application you just click “Find” button and get all company data from DaData web service.
Calling PowerApps application from D365 for FO
When you build a canvas app that will be embedded in a Finance and Operations app, one important part of the process is to use the input data from that Finance and Operations app. From the Power Apps development experience, the input data that is passed from a Finance and Operations app can be accessed by using the Param("EntityId") variable.
For example, in the OnStart function of the app, you could set the input data from Finance and Operations apps to a variable like this:
If(!IsBlank(Param("EntityId")), Set(FinOpsInput, Param("EntityId")), Set(FinOpsInput, ""));
posted on 2021-03-25 15:36 lingdanglfw 阅读(86) 评论(0) 编辑 收藏 举报
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?