Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

Get primary fields from EntityCollection

$
0
0

I have an EntityCollection in my plugin, that I want to loop through and get all the primary field values. In my case: Resources on Service Appointment. Is there a good way?

Something like:

EntityCollection entityCollection = (EntityCollection)entityServiceAppointment["resources"];
string allPrimaryFields = "";
foreach(Entity entity in entityCollection.Entities)
{
allPrimaryFields += entity."Name"(But name does not exist here)
}


Viewing all articles
Browse latest Browse all 9244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>