[英]How to Create Case in Microsoft Dynamics CRM 2016 (Version 8) using webservices or REST API in JAVA or C#?
I want to create a case in Microsoft Dynamics 2018(Ver.8) using either C# or java using web services.我想使用 C# 或 java 使用 web 服务在 Microsoft Dynamics 2018(Ver.8)中创建一个案例。 After doing a vast googling I'm having hard luck with no or very few resources that are hardly useful.
在进行了大量的谷歌搜索之后,我运气不好,没有或很少有几乎没有用的资源。 The Microsoft documentation is a complete dead end.
Microsoft 文档完全是死胡同。 Following are my requirements:
以下是我的要求:
I need to perform these actions using Rest API or Webservice either in JAVA or C#.我需要使用 Rest API 或 Webservice 在 JAVA 或 ZD7EFA19FBE7D39D72FD25ADB23 中执行这些操作。 Any help would be appreciated.
任何帮助,将不胜感激。
Assuming you are non on-prem, your data will reside in the Common Data Service (CDS).假设您不在本地,您的数据将驻留在 Common Data Service (CDS) 中。
So perhaps the reason why you can't find anything is because you are searching specifically for connecting to Dynamics.因此,您找不到任何东西的原因可能是因为您正在专门搜索连接到 Dynamics。
There is full developer guide here:这里有完整的开发者指南:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/work-with-data-cds https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/work-with-data-cds
A sample POST request is below to create a entity - in this case ACCOUNT (be it a CASE or CONTACT you will need to ensure you have the right attributes corresponding to your entities).下面是一个用于创建实体的示例 POST 请求 - 在本例中为 ACCOUNT(无论是 CASE 还是 CONTACT,您都需要确保您拥有与您的实体相对应的正确属性)。
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/create-entity-web-api https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/create-entity-web-api
For some code ready examples see below.有关一些代码就绪示例,请参见下文。 I would suggest starting with a simple WebAPI connection, then using this as a base to contruct the operations you wish to complete.
我建议从一个简单的 WebAPI 连接开始,然后以此为基础来构建您希望完成的操作。
https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/C%23/SimpleWebApi https://github.com/microsoft/PowerApps-Samples/tree/master/cds/webapi/C%23/SimpleWebApi
Your best to stick to C# as there will be more examples around the web.您最好坚持使用 C#,因为 web 周围会有更多示例。 But you can use any language you wish that has the abilty to create and post a request to the endpoint so JAVA can be used as well.
但是您可以使用任何您希望能够创建请求并将请求发布到端点的语言,因此也可以使用 JAVA。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.