microsoft-dynamics-webapi

Call Dynamics Web API in C# Plugin

此生再无相见时 提交于 2019-12-31 00:46:48
问题 I have a Business Process Flow in Microsoft Dynamics to handle creation of a new client. When the process finishes, I am attaching a workflow that kicks of an action which calls a plugin to do some custom processing. I am following this article to set up this process. In my plugin, I have a call to the Dynamics Web API (see code below). When I hit the responseMessage = client.GetAsync(url).Result; line, my plugin exits without returning an error. When I am debugging in the Plugin Registration

Call Dynamics Web API in C# Plugin

北慕城南 提交于 2019-12-31 00:46:46
问题 I have a Business Process Flow in Microsoft Dynamics to handle creation of a new client. When the process finishes, I am attaching a workflow that kicks of an action which calls a plugin to do some custom processing. I am following this article to set up this process. In my plugin, I have a call to the Dynamics Web API (see code below). When I hit the responseMessage = client.GetAsync(url).Result; line, my plugin exits without returning an error. When I am debugging in the Plugin Registration

Create annotation to a contact entity in Microsoft Dynamics CRM by API

北战南征 提交于 2019-12-17 19:57:42
问题 This question is related to Microsoft Dynamics CRM 2015, that I'm calling through API. I create contact entity: POST [organization URI]/api/data/contacts Content-Type: application/json; charset=utf-8 Accept: application/json { "emailaddress1": "myemail@example.com", } It works, I see new record, after I log into the panel. And I can call it through the API: [organization URI]/api/data/contacts(f76e4e7c-ea61-e511-80fd-3863bb342b00) { "@odata.context":"[organization URI]/api/data/$metadata

Microsoft Dynamics - Web API

与世无争的帅哥 提交于 2019-12-12 20:58:50
问题 I'm trying to create a new "incident" (case) in by Dynamics 365 instance via the Web API. In my http request, I don't know which field are mandatory. I tried to only add the title, subject, and customer, but I have a Http 400 error back... I'm using Postman do try my Http Request. If I send the following json { "title": "Case created from Web api", "_customerid_value": "bb2b6a80-7102-e711-8101-3993bb354ff0" } But I had the error: "CRM do not support direct update of Entity Reference

Resolve error on deep insert of navigation property Dynamics WebAPI

不打扰是莪最后的温柔 提交于 2019-12-10 10:53:32
问题 I am using the Microsoft Dynamics Web API to write data to an entity in Microsoft Dynamics 365. When I try to do a deep insert I am receiving the error An undeclared property 'ccseq_employeeid' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values. Why am I receiving this error and how can I resolve the error? JSON { "ccseq

How to get 'ownerid' column from CRM database of type `owner` using Web API approach?

我怕爱的太早我们不能终老 提交于 2019-12-06 12:49:56
问题 I'm using Microsoft dynamics 365 - on premises of my client. Here, I am facing an issue in accessing one of the fields - ownerid of type owner . I am using Web API approach to access the CRM data. When I hit the query in URL, it brings all the data except ownerid column. It's field type is: Simple Has anyone faced the same issue with WebAPI query approach? URL Query: https://baseURL/moves?$select=moveid,ownerid,movenumber&$filter=movenumber%20eq%20%27236659%27 Output: { "@odata.context":

Resolve error on deep insert of navigation property Dynamics WebAPI

无人久伴 提交于 2019-12-06 11:21:51
I am using the Microsoft Dynamics Web API to write data to an entity in Microsoft Dynamics 365. When I try to do a deep insert I am receiving the error An undeclared property 'ccseq_employeeid' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values. Why am I receiving this error and how can I resolve the error? JSON { "ccseq_importdate" : "2017-05-28T04:00:00Z", "ccseq_month" : "1", "ccseq_year" : "2017", "ccseq_name" : "Test",

Creating Post with Dynamics CRM Web API

笑着哭i 提交于 2019-12-04 23:22:00
问题 A Post entity (https://msdn.microsoft.com/en-us/library/mt607553.aspx) cannot be created using Dynamics CRM 2016 Online Web API. This payload should create a post on POST /api/data/v8.1/posts { "text": "Test Single Post", "source": 1, "type": 7 } (source 1 is an auto post, type 7 is a status post) But it returns: { "error": { "code":"", "message":"An unexpected error occurred.", "innererror" { "message":"An unexpected error occurred..." } } } Submitting the same payload with only "text" fails

Creating Post with Dynamics CRM Web API

╄→尐↘猪︶ㄣ 提交于 2019-12-03 14:18:06
A Post entity ( https://msdn.microsoft.com/en-us/library/mt607553.aspx ) cannot be created using Dynamics CRM 2016 Online Web API. This payload should create a post on POST /api/data/v8.1/posts { "text": "Test Single Post", "source": 1, "type": 7 } (source 1 is an auto post, type 7 is a status post) But it returns: { "error": { "code":"", "message":"An unexpected error occurred.", "innererror" { "message":"An unexpected error occurred..." } } } Submitting the same payload with only "text" fails too. Notice that the Post entity does not have single-valued navigation properties ( https://msdn