A tag for questions related to the Microsoft Dynamics Web API. This tag should be used for questions about using the Web API in your code. Do not use this tag for questions related to using Microsoft Dynamics software (use the tag microsoft-dynamics instead).
Questions tagged [microsoft-dynamics-webapi]
29 questions
24
votes
8 answers
Create annotation to a contact entity in Microsoft Dynamics CRM by API
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":…

maicher
- 2,625
- 2
- 16
- 27
6
votes
3 answers
Creating Post with Dynamics CRM Web API
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,
…

cam
- 121
- 1
- 8
5
votes
2 answers
Call Dynamics Web API in C# Plugin
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…

Tim Hutchison
- 3,483
- 9
- 40
- 76
5
votes
2 answers
What DateTime is returned from Dynamics CRM API
Are the DateTime objects returned from the Dynamics CRM web API always in UTC and where is that documented?
I am using the CRM SDK nuget package. I've read on several blogs (by CRM shops) that the CRM API always returns UTC DateTime objects and I…

GER
- 1,870
- 3
- 23
- 30
4
votes
1 answer
Dynamics365 web api update vs upsert
I'm quite confused. I understand the actual difference between those two, but I can't see any difference in the actual implementation here.
Here is an excerpt from the docs
Basic update
Update operations use the HTTP PATCH verb. Pass a JSON object
…

redacted
- 3,789
- 6
- 25
- 38
3
votes
2 answers
Dynamics C# Plugin fails when run, but succeeds when Debugging
Overview
I am on Dynamics 2016 on premise.
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 off an action which calls a plugin to do some custom…

Tim Hutchison
- 3,483
- 9
- 40
- 76
3
votes
1 answer
Can't close Incident through Web API client side
On Dynamics 365, we are trying to close incidents using the client side Web API.
After looking at the doc (in C#), we understand that we first need to create a IncidentResolution activity, which we did successfully.
However, we don't understand how…

Pierre Burton
- 1,954
- 2
- 13
- 27
3
votes
2 answers
Authenticating Dynamics 365 Web Api with logged in user of Azure Function app
I have an Azure Function App (HTTP trigger function) that is protected by Azure AD authentication.
This is working fine - when I go to the URL of the function in my browser. I am first redirected to the login page where I can login using my Azure…

Dave B 84
- 568
- 1
- 5
- 14
3
votes
1 answer
Ms Dynamics Nav Multi Language with PHP
public function productDetails($product_code){
$url = 'Page/ProductGroups';
try {
$client = $this->initClient($url);
// $filter = ['Field' => 'Product_Group_Code', 'Criteria' => $product_code];
$result =…

Aravind Srinivas
- 320
- 3
- 11
3
votes
2 answers
Resolve error on deep insert of navigation property Dynamics WebAPI
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…

Tim Hutchison
- 3,483
- 9
- 40
- 76
2
votes
1 answer
retrieve a record using Dynamics 365 Web API with empty alternate key
Problem
I'm trying to query records from Dynamics 365 using the Web API where a key attribute is null.
Approach
For testing purposes I created an entity with a string attribute, an integer attribute, and a decimal attribute. I then created an…

Daniel Schmid
- 362
- 1
- 5
- 20
2
votes
1 answer
Getting CORS error while calling Dynamics 365 Operations JSON-Based custom service using Javascript
I am developing a simple SPA application and trying to access a Dynamics 365 for Operations JSON-Based custom service. I am using ADAL.js library for authentication. The way for authentication I am following from This Dynamics Community thread.
But…

Mirza Danish Baig
- 680
- 5
- 18
2
votes
1 answer
400 - Bad request while inserting record for lookup field
I am using Microsoft Dynamics 365 and to access its database I am using Web API approach.
In here, I am having a field which is of lookup type and is having lookup values like below:
In here, consider its code values as below:
Pending: 101
Booked :…

I Love Stackoverflow
- 6,738
- 20
- 97
- 216
2
votes
1 answer
400 - Bad Request while saving Date Only field in CRM using Web API
I am using Microsoft Dynamics 365 Web API approach to interacting with CRM data.
Here I want to update the field with type: DATE and TIME.
Date value I am passing in the request body is as below:
"packfirstday":"1-15-2018"
Except for above, I have…

I Love Stackoverflow
- 6,738
- 20
- 97
- 216
2
votes
1 answer
CalculateRollupField Dynamics WebAPI
I am trying to call the CalculateRollupField WebAPI call from javascript for microsoft-dynamics. I can't seem to find many examples of the implementation and my attempt at following the documentation throws the error:
The request URI is not valid.…

Tim Hutchison
- 3,483
- 9
- 40
- 76