I am trying to load all the available entities in the CRM, using web api and I am able to fetch all the required information. (URL/api/data/v8.0/EntityDefinitions?$select=SchemaName,LogicalName,IsValidForAdvancedFind&$filter=IsValidForAdvancedFind eq true)
But, not able to update the option-set, on the page load (It is a HTML Page). Please help me how can I achieve that.?
var select = document.getElementById("selectEntity");
for (var i = 0; i < results.value.length; i++)
{
var opt = results.value[i];
var el = document.createElement("option");
el.textContent = opt["SchemaName"];
el.value = opt["LogicalName"];
select.appendChild(el);
}
*This post is locked for comments