public Guid CreateAggregatedSolution(string name, AggregatedSolution.AggregatedSolutionType type) { return(CrmProvider.CreateAggregatedSolution(_service, name, type)); }
public static Guid CreateAggregatedSolution(IOrganizationService service, string name, AggregatedSolution.AggregatedSolutionType type) { Entity e = new Entity(AggregatedSolution.EntityLogicalName); e[AggregatedSolution.AttributeDefinitions.Name] = name; e[AggregatedSolution.AttributeDefinitions.Type] = new OptionSetValue((int)type); return(service.Create(e)); }