[英]How to go about it: sync/export data for Accounts from Microsoft Dynamics 365 CRM and show it in a 3rd party web app? Using WS and ASP.NET MVC/C#
I'm trying to get data from Microsoft Dynamics 365 CRM, specifically the Accounts and their data to show it in my own web app that I will build using ASP.NET MVC and C#.我正在尝试从 Microsoft Dynamics 365 CRM 获取数据,特别是帐户及其数据,以便在我将使用 ASP.NET MVC 和 C# 构建的我自己的 web 应用程序中显示。
How would I go about doing this so that my web app will instantly be updated when the data in CRM changes?我 go 如何执行此操作,以便在 CRM 中的数据更改时立即更新我的 web 应用程序? I find it difficult enough navigating through the Dynamics platform already, thanks Microsoft.我发现在 Dynamics 平台上导航已经够困难了,感谢微软。
The app would work like this:该应用程序将像这样工作:
I've started researching webhooks with MS CRM, but it seems Visual Basic is crapping out on me a lot and I cant get the tools to work properly.我已经开始使用 MS CRM 研究 webhooks,但似乎 Visual Basic 对我来说太麻烦了,我无法让这些工具正常工作。 I think that I have to establish a connection somehow with WebSocket to the CRM, I just don't know which technologies to use and what plugins there are, seeing I'm new to ASP.NET MVC and C#.我认为我必须以某种方式与 WebSocket 建立连接到 CRM,我只是不知道要使用哪些技术以及有哪些插件,因为我是 ASP.NET MVC 和 C# 的新手。
Anyway, I just don't know where to start.无论如何,我只是不知道从哪里开始。 Could someone send me in the right direction?有人可以送我正确的方向吗? I would greatly appreciate it!我将不胜感激!
You can access the data inside a Dynamics 365 / Power Apps instance (also known as Dynamics CRM or Dynamics 365 CE) using the APIs provided by the system.您可以使用系统提供的 API 访问 Dynamics 365 / Power Apps 实例(也称为 Dynamics CRM 或 Dynamics 365 CE)内的数据。
You can leverage these APIs using the SDK provided by Microsoft (this one https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/ or this one in preview for .NET Core https://www.nuget.org/packages/Microsoft.PowerPlatform.Dataverse.Client/ ) or by calling the API directly inside the language of your choice.您可以使用 Microsoft 提供的 SDK(这个https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/或这个预览中的 .NET 核心8810563www39.8865619://www.nuget.org/packages/ org/packages/Microsoft.PowerPlatform.Dataverse.Client/ )或直接在您选择的语言中调用 API。
Usually you need to deal with CRUD events, and the APIs can do that.通常您需要处理 CRUD 事件,而 API 可以做到这一点。 In your question you mention "the web app should update without refreshing the page" so you will need to take a look at webhooks (here a doc page https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/use-webhooks ) handle them in your application and see if they fit your requirements.在您的问题中,您提到“web 应用程序应该在不刷新页面的情况下更新”,因此您需要查看 webhooks(这里是文档页面https://learn.microsoft.com/en-us/dynamics365/customerengagement/on -premises/developer/use-webhooks ) 在您的应用程序中处理它们并查看它们是否符合您的要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.