RE: Get Email attribute from the Entity
Hi,
Use below code to get attribute value from entity.
Guid entityId=Guid.Parse("00000000-0000-0000-00000001");
Entity entity=service.Retrieve("email",entityId,new ColumnSet("Attribute Schema Name"));
if(entity!=null && entity.Attributes.Contains("Attribute Schema Name"))
{
string attributeValue=entity.GetAttributeValue<string>("Attribute Schema Name");
}
Replace Atribute Schema Name with your actual field name.
If found helpful, Please mark my answer verified.