简体   繁体   中英

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. 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. Following are my requirements:

  1. Creating a CASE.
  2. Updating CASE more likely closing of CASE.
  3. Creating a CONTACT.

I need to perform these actions using Rest API or Webservice either in JAVA or C#. Any help would be appreciated.

Assuming you are non on-prem, your data will reside in the Common Data Service (CDS).

So perhaps the reason why you can't find anything is because you are searching specifically for connecting to Dynamics.

There is full developer guide here:

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).

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.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM