Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

updating entities list into an option-set on page load using web api

$
0
0

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);
      }

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images