Get members(Users) of a team

The method below will return you a list of users which are part of a team that will be received as parameter: public static List<Entity> GetTeamMembers(Guid teamID, IOrganizationService service) { string fetchXML = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'> <entity name='systemuser'> <attribute name='systemuserid' /> <order attribute='fullname' descending='false' /> <link-entity name='teammembership' from='systemuserid' to='systemuserid' visible='false' intersect='true'> <link-entity name='team' … Continue reading Get members(Users) of a team

Advertisements

Changing max number of records per page in views

Sometimes we could need to see more than 50 records per page in our CRM views. On the OOB configuration, the max number of records per page is set to 50, however this can be changed in the "Options" section, see how to do this below: NOTE: Changing this option will affect all views in … Continue reading Changing max number of records per page in views

Plugin to only allow users with certain role to deactivate records

As variant to a recent post I did, here's another plugin to manage the Activation/Deactivation of records. In this post, I'll describe a plugin that will control these actions in Contact Entity by only allowing users with an specific role. Plugin step details: Message: Update Filtering Attributes: statecode Run in user’s context: Calling User Event … Continue reading Plugin to only allow users with certain role to deactivate records