dump custom entity to tracelog dynamics crm 365 ce online c# extension
// Global Values
EntityReference entityReference = new EntityReference("account", Guid.Parse("608DA112-2681-4967-B30E-A4132321010A")); // Normally will be retrieved from an entity.
string[] columnNames= new string[] { ..list of fields.. };
// Default SDK Retrieve call.
service.Retrieve(entityReference.LogicalName, entityReference.Id, new ColumnSet(columnNames));
// Overloaded extension Retrieve call.
service.Retrieve(entityReference, columnNames);
// The overload in from the extension static class
public static Entity Retrieve(this IOrganizationService service, EntityReference entityReference, string[] columnNames)
=> service.Retrieve(entityReference.LogicalName, entityReference.Id, new ColumnSet(columnNames));