Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Dynamic API - Associate ManyToMany Entities on Create

Is it possible to associate entities on an API Create call, where the relationship is ManyToManyRelationship as below? { "SchemaName": "testscheduleid_testid", "...
Long Thang Hoang's user avatar
0 votes
1 answer
2k views

Dynamic 365 - Retrieve API Metadata Attribute List - DateTimeBehavior

We have started using Dynamic API to retrieve an entity's attribute list for migration purposes as below: GET [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='contact')?$select=...
Long Thang Hoang's user avatar
0 votes
1 answer
81 views

How to verify an email is triggered or not when creating an entity in Dynamics crm using the api?

I have to verify an email is successfully triggered or not when an entity created or assigned to someone in the Dynamics crm using the web api. Can someone help me with the api query I can use for ...
abhilash mt's user avatar
0 votes
1 answer
237 views

MS CRM Online: Get all accounts with more than X contacts

Is it possible to get all accounts in MS CRM Online with more than X contacts via odata (this is probably not possible via FetchXML)? Something like (dummy code, does not work): accounts?$apply=...
Eichi's user avatar
  • 178
2 votes
1 answer
955 views

Query specific value in array from a metadata entity in Dynamics 365

I'm trying to avoid iterating through this array, but I imagine that is the only way to handle this. Just seeing if there is a way to directly query this value in the array from the Web API URI. This ...
cheslijones's user avatar
  • 9,164
2 votes
1 answer
920 views

How do I use "maxPageSize" with the new Xrm.API?

Edit 2 It was a Microsoft bug. My CRM updated recently and the query is now executing as expected Server version: 9.1.0000.21041 Client version: 1.4.1144-2007.3 Edit If it is a Microsoft bug, which ...
jasonscript's user avatar
  • 6,160
1 vote
3 answers
3k views

Undeclared property when creating a record via Web API In Dynamics CRM Online

I am trying to create an entity in Dynamics CRM online with a custom lookup field. Even after providing the SchemaName(sg_DepartmentalProjectId) as mentioned here 'An undeclared property' when ...
hpandalai's user avatar
  • 458
3 votes
4 answers
3k views

Date is off by one day when using the API or C# program

Using Postman, or the C# program I have, I am trying to send a date to CRM. The date being passed is "2019-09-15", but when it shows up in CRM it is "2019-09-14". In Postman, I am sending this in ...
cheslijones's user avatar
  • 9,164
0 votes
1 answer
1k views

Response body not parsed when API returns http 400

When making requests to the Powerapps Model Driven / Dynamics Client API, if you make a mistake in any of your query strings, you get a blank error object returned. Even though the response body ...
Alexander Don'valderath's user avatar
1 vote
1 answer
4k views

Get results from fetchXml using new retrieveMultipleRecords (Client API reference)

Having trouble figuring how to get results from the following fetchXml using the new retrieveMultipleRecords (Client API reference): var request = "<fetch output-format='xml-platform' distinct='...
J.S.Orris's user avatar
  • 4,793
1 vote
1 answer
602 views

Run a query on the Dynamics 365 API

I'm looking for some simple boilerplate code I can use to run a query against the Dynamics 365 API and grab out some JSON. Preferably using WebClient or HttpClient. Nothing fancy. Simplest, reusable ...
Mark Micallef's user avatar
1 vote
1 answer
565 views

Cannot use arrow functions with CRM WebApi v9 and typescript

I´m working on the upgrade of the js code to the new V9 version of Dynamics 365 and I cannot use arrow functions when using Xrm.WebApi (also upgrading js to ts). For example, this does not work: ...
JUtrilla's user avatar
2 votes
1 answer
537 views

Registering an App at Azure Active Directory to generate a Client Id

I'm slightly confused on how to register an app in my Azure Active Directory. I'm running a Microsoft Dynamics CRM on-Demand app at <myorg>.crm4.dynamics.com. In order to run some simple ...
Noli's user avatar
  • 163
2 votes
1 answer
985 views

Adding MSCRM.SuppressDuplicateDetection header to CRM Dynamics Web API request gives HTTP 412 code

We are using the WEB API of Microsoft CRM Dynamics online (v9.0) Everything works fine with 'normal' create en read operations but when we want to use the duplication detection feature, the Microsoft ...
mpjjonker's user avatar
  • 947
5 votes
5 answers
14k views

Counting ALL rows in Dynamics CRM Online web api (ODATA)

Is it possible to count all rows in a given entity, bypassing the 5000 row limit and bypassing the pagesize limit? I do not want to return more than 5000 rows in one request, but only want the count ...
uba2012's user avatar
  • 385
3 votes
2 answers
4k views

Associate Role to a User Microsoft Dynamics CRM (Rest API)

I have use case where I need to create a role, create a user in crm instance and associate role to user. I have explored api to create user and create role. Below is the code : private void ...
kavetiraviteja's user avatar
2 votes
1 answer
1k views

Accessing Microsoft Dynamics 365 - API

I want to access Microsoft Dynamics 365 online. It is the first time I am working with this tool. I want to access this through API. I have gone through the following links : Link 1 Link 2 It ...
Salman Shaikh's user avatar
3 votes
3 answers
4k views

/api/data/v8.2 to /api/data/v9.0 after dynamics CRM online upgrade?

I'm relatively new to using the Web API (HTTP REST API) to access Dynamics CRM using javascript so I apologise in advance if this is a stupid question. We've recently upgraded from v8.2 online to v9....
Andrew N's user avatar
  • 521
2 votes
6 answers
9k views

Setting null for single-valued navigation property using Xrm.WebApi

We are in the process of remediation, re-engineering old JS web resources for latest D365 v9 sdk changes w.r.t Client scripting API improvements & deprecation. When rewriting the web api methods ...
Arun Vinoth PrecogTechnologies's user avatar
2 votes
0 answers
476 views

Dynamics CRM Web API - Are Actions supported via the $batch endpoint?

I have successfully used the $batch endpoint of the Dynamics 365 Web API to create many appointments. https://myorg.com/api/data/v8.2/$batch The request body looks something like this: --...
Equalsk's user avatar
  • 8,164
3 votes
1 answer
835 views

Generating strong-types for WebAPI OData objects in C#

I'm trying to access CRM's WebAPI using C# and I'm wondering if there is a way of generating strong-types for the WebAPI responses similar to the way CrmSvcUtil was used to generate strong types based ...
jasonscript's user avatar
  • 6,160
2 votes
1 answer
73 views

How to set which solution when creating Entity definition using the WebAPI

Context I would like to create a custom Entity using the Dynamics 365 WebAPI. When reading the official documentation Create and update entity definitions using the Web API I can not find traces ...
g.pickardou's user avatar
  • 35.6k
3 votes
1 answer
6k views

Create annotation via CRM Web API

Anyone knows how to create an "annotation" using CRM Web API. I can create other objects such as account and contacts but annotation attachment is a no go. Seems like my object is missing something. ...
zAnthony's user avatar
  • 342
1 vote
1 answer
603 views

Missing lookup in the API?

I'm using JavaScript and the Dynamics API to fetch my entities, but for some reason fields of type Lookup does not get passed to the JavaScript. Simpler types ad single line, multiple line, number and ...
fUrious's user avatar
  • 444
2 votes
1 answer
267 views

Crm Web Api invalid 304 Response for Expand Entity

I'm calling a Crm Web Api query with an expand: https://something.crm.dynamics.com/api/data/v8.2/systemusers(F437A25E-8D81-E511-80E1-3863BB367DC0)?$select=systemuserid&$expand=new_relatedemployee(...
Daryl's user avatar
  • 18.9k
2 votes
1 answer
3k views

Microsoft Dynamics - Web API

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 ...
Ynnad's user avatar
  • 303
6 votes
1 answer
2k views

Getting column names of a view using CRM web API

I’m using the CRM Online 2016 Web API. Now the only information I have is a savedQuery or userQuery record. With this I can get all records of the view, but I also want the column names of this view. ...
Skaj's user avatar
  • 141
3 votes
1 answer
5k views

Not able to fetch "Name" of lookup fields of Link-Entity (Web API + FetchXml)

I have some fetchXml that I am executing through the Dynamics CRM Web API. THe fetchXml query is constructed like so: <fetch version="1.0" output-format="xml-platform" mapping=&...
jmsims2's user avatar
  • 43
5 votes
2 answers
2k views

How to query Dynamics CRM Web API using custom FetchXml involving Number value filter?

I am trying to execute fetch XML using WEB API /api/data/v8.x. All is fine except when I have query involving "where a attribute contains number value". For example, the following fetchXML to find ...
Felix's user avatar
  • 342
2 votes
1 answer
1k views

Dynamics CRM Web API Auth Error on Web Resource

When loading a Dynamics CRM form with a HTML web resource I get the below error from the Chrome browser console. https:‌//xxxx.api.crm6.dynamics.com/api/data/v8.2/<custom entity>. No '...
user3845056's user avatar
2 votes
1 answer
785 views

Dynamics CRM Online 2016 Web API - Get user by Auzure AD Object ID

Is it possible to get a user object from Dynamics CRM Online 2016 Web API by the users ObjectID from AzureAD. I am able to get a user by its windowsliveid (as in example below) but cannot find the ...
Schmalzy's user avatar
  • 17.3k
7 votes
3 answers
3k views

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 { "...
cam's user avatar
  • 131
1 vote
0 answers
279 views

How to connect to Dynamics CRM Online 2016 OData WebApi with LINQPad?

How to connect to Dynamics CRM Online 2016 OData WebApi with LINQPad? I'm aware of the existing question ... How to Connect to CRM Dynamics Online Odata endpoint LinqPad? ... but this is related ...
SteveC's user avatar
  • 16.7k
6 votes
1 answer
3k views

CRM 2016 oData expand on collection

I'm trying to retrieve multiple data from the new REST API but I have a strange issue. If I use $expand on a collection then it doesn't work. The request is: GET [Oranization URL]/api/data/v8.0/...
zskovacs's user avatar