简体   繁体   English

如何 go 关于它:从 Microsoft Dynamics 365 CRM 同步/导出帐户数据并在第 3 方 web 应用程序中显示? 使用 WS 和 ASP.NET MVC/C#

[英]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:该应用程序将像这样工作:

  1. When run, the app would get the initial data, and establish a real-time connection with WS to the CRM to get further new data/changes.运行时,应用程序将获取初始数据,并与 WS 建立实时连接到 CRM,以获取更多新数据/更改。
  2. the app will display this data in a table.该应用程序将在表格中显示此数据。
  3. When a change is detected, the web app should update without refreshing the page.当检测到变化时,web 应用程序应该更新而不刷新页面。
  4. individual table rows will be colored according to number of contacts and if they lack any contact data.个别表格行将根据联系人数量以及是否缺少任何联系人数据进行着色。

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.

相关问题 如何从Dynamics 365 CRM在线调用第三方REST服务? - How do I call 3rd party REST service from Dynamics 365 CRM online? ASP.NET MVC 5:如何从 3rd 方库中禁用自定义错误页面 - ASP.NET MVC 5: How to disable custom error page from 3rd party library ASP.NET Core Web API - 如何使用 HttpClient 使用 3rd 方 API - ASP.NET Core Web API - How to Consume 3rd party API using HttpClient 我可以/应该安全地存储第三方登录详细信息的ASP.Net MVC Web App - ASP.Net MVC Web App can I / should I securely store 3rd party login details 如何在使用 AAD 进行身份验证的 ASP.NET MVC 站点中以登录用户身份查询 Dynamics 365 CRM? - How can I query Dynamics 365 CRM as the logged in user in an ASP.NET MVC site authenticated with AAD? 从.Net访问Microsoft CRM Dynamics 365 - Access to Microsoft CRM Dynamics 365 from .Net 从ASP.Net MVC控制器中的第三方API返回JSON字符串 - Returning JSON string from 3rd party API in ASP.Net MVC controller 在 ASP.NET MVC 中重定向到第 3 方 URL 后如何维护会话? - How to maintain session after redirection to 3rd party URL in ASP.NET MVC? 如何在第三方ASP.NET Web API客户端中使用Oauth生成的令牌? - How to use an Oauth Generated Token in a 3rd party asp.net web API client? 如何在asp.net core web api中实现JWT Refresh Tokens(没有第三方)? - How to implement JWT Refresh Tokens in asp.net core web api (no 3rd party)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM