Everybody who has worked with the Web Api, in the system formerly known as Dynamics CRM (honestly, I do not know how to call it now), must have notice that you can’t pass the EntityLogicalName to it. It expects the EntitySetName, which is a kind of plural name for the entity.
Not to be confused with the plural display name you can configure in the entity.
Here it is:
var req = new XMLHttpRequest();
req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v8.2/" +
"EntityDefinitions(LogicalName='" + strEntityLogicalName + "')?$select=EntitySetName", false);
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function ()
if (this.readyState === 4)
req.onreadystatechange = null;
if (this.status === 200)
var result = JSON.parse(this.response);
Der Artikel Get EntitySetName from Metadata von Ben ist auf leicht bewölkt veröffentlicht worden..