简体   繁体   English

How to Create Case in Microsoft Dynamics CRM 2016 (Version 8) using webservices or REST API in JAVA or C#?

[英]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:以下是我的要求:

  1. Creating a CASE.创建一个案例。
  2. Updating CASE more likely closing of CASE.更新 CASE 更有可能关闭 CASE。
  3. Creating a CONTACT.创建联系人。

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.

相关问题 将角色与用户关联 Microsoft Dynamics CRM (Rest API) - Associate Role to a User Microsoft Dynamics CRM (Rest API) Java Dynamics CRM 2011在线Web服务 - Dynamics CRM 2011 Online WebServices from Java 将 java 连接到 Microsoft Dynamics crm - connecting java to microsoft dynamics crm 尝试通过java中的web api连接Microsoft dynamics crm - trying to connect Microsoft dynamics crm by web api in java 如何在Java for Sharepoint 2016中使用REST API进行身份验证? - How to do authentication using REST API in Java for Sharepoint 2016? 如何通过 Java 连接在 Azure 云上运行的 Dynamics CRM 2016 实例? - How to connect Dynamics CRM 2016 instance running on Azure Cloud through Java? 通过 Selenium 和 Java 使用 IEDriverServer 和 Internet Explorer 在 Microsoft Dynamics CRM 中出现 XPathEvaluator 未定义脚本错误 - XPathEvaluator is undefined’ script error in Microsoft Dynamics CRM using IEDriverServer and Internet Explorer through Selenium and Java Java和MS CRM 2016 Web API更新 - Java and MS CRM 2016 Web API Updates 401- 使用 REST API Dynamics CRM 和来自 Spring Boot 应用程序的 Azure AD 的未经授权的身份验证 - 401- Unauthorized authentication using REST API Dynamics CRM with Azure AD from a Spring Boot app 从JAVA在线调用Microsoft Dynamics CRM 2011 - Calling Microsoft Dynamics CRM 2011 online from JAVA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM