I am currently working on loading all entities available in the CRM through the web API, and I have successfully retrieved all required information.
URL/api/data/v8.0/EntityDefinitions?$select=SchemaName,LogicalName,IsValidForAdvancedFind&$filter=IsValidForAdvancedFind eq true
However, I am facing an issue with populating a dropdown menu on my HTML page upon loading. Can someone please assist me in achieving this?
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);
}