With XrmQuery you can utilize intellisense and type-support to create and structure Web API queries for your Dynamics 365/CRM instance. The syntax of XrmQuery is very similar to the method syntax of LINQ, which makes for a great developer experience.
Questions tagged [xrmquery]
6 questions
2
votes
1 answer
xrmquery.update -> update crm id binding with null
I need to use XrmQuery to update an id-binding field with "null".
Here is my code:
XrmQuery.update(x => x.contacts,
recordId,
{
address2_line1: null,
address2_postalcode: null,
…

Batsman
- 87
- 8
2
votes
2 answers
xrmquery.update -> update crm date field
I'm writing a custom typescript page for a scan module.
When a code is scanned a datetime field on a CRM record needs to be updated.
Here is my code:
XrmQuery.update(x => x.cgk_bonuses,
this.bonusId(),
{ cgk_datescan: new…

Batsman
- 87
- 8
1
vote
1 answer
Trying to read custom field from Dynamics CRM 2016 using Xrm.WebApi
I want to read a custom field named (mxpcah_new_phonecalltype) using a WebApi call.
From my browser I can call:
https://myurl/PhonecallActivityHistory/api/data/v8.2/activitypointers(CEA756CE-5D7E-EA11-A97E-005056B82894)
and get:
this result does…

HHeckner
- 4,722
- 4
- 23
- 33
1
vote
1 answer
Get formatted value from webattribute with typescript xrmquery
I have a xrmquery in typescript:
cgk_employerid_guid is like this:
I need to get the cgk_employerid_formatted value.
But when the query runs it gives cgk_employerid_guid as a string, so it's not possible to get the formatted value from it.
Does…

Batsman
- 87
- 8
0
votes
1 answer
Error "The URI 'XY' is not valid because it is not based on 'XY'" in LogicApp call from JS
I never had an eror like this so I am hoping someboday has a hint regarding this.
I call an HTTP triggered Azure Logic App with javascript by using the XrmQuery.SendRequest() method like this:
XrmQuery.sendRequest("POST", url,…

Paul Richardson
- 165
- 17
0
votes
2 answers
How to fix OrganizationServiceProxy "System.ArgumentNullException: Value cannot be null. Parameter name: identityProvider" issue
I'm trying to retrieve an entity from CRM application using OrganizationServiceProxy. It works on my DEV server which has internet access and it doesn't work on the Test server which does NOT have internet access.
ClientCredentials credential = new…

arkay
- 3
- 3