Get the list of the dirty fields on the Dynamics 365

To quickly get the list of all the dirty fields

Open the debugger tool and put the following script in the console window

Xrm.Page.data.entity.getDataXml();

Web API and plural names

beware

JavaScript Plural name issue almost killed us, following post saved us. 🙂 …. CRM 2016 Web API and plural names … Thanks for the post nice post. I’m re-posting the article ..

The new Web API available for CRM 2016 is based on OData V4 protocol and the endpoint is /api/data/v8.0/

Continue reading “Web API and plural names”

Error:400:Bad Request: unrecognized ‘Edm.Guid’ litral ‘guid’ ” in ‘***’

Error:

  1. Bad Request: unrecognized ‘Edm.Guid’ litral ‘guid’ ” in ’20’
  2. UnRecognized ‘Edm.Guid’ literal ‘guid’null

JS Error

Resolution:

You got this error because some where in your code, your code is passing null value.

In my case i was retrieving current records GUID using ‘Xrm.Page.data.entity.getId()’, but on create, there is no GUID, thus result is it was passing null value. SO to avoid this we needs to restrict this. I resoled it by using ‘Xrm.Page.ui.getFormType() != 1’ (1 for create).

Ref: https://crmbusiness.wordpress.com/2014/09/25/crm-2011-unrecognized-edm-guid-literal-guidnull/