[CRM] Aggiungere/Rimuovere user dai Team via codice

public void AddUserToTeam(Guid teamId, Guid userId)
{
CrmService service = new CrmService();
service.Credentials = ......passare credenziali di amministratore

AddMembersTeamRequest addRequest = new AddMembersTeamRequest();
addRequest.TeamId = teamId;
addRequest.MemberIds = new Guid[] { userId };

AddMembersTeamResponse addResponse =
(AddMembersTeamResponse)service.Execute(addRequest);
}

public void RemoveUserForTeam(Guid teamId, Guid userId)
{
CrmService service = new CrmService();
service.Credentials = ......passare credenziali di amministratore

RemoveMembersTeamRequest remove = new RemoveMembersTeamRequest();

remove.TeamId = teamId;
remove.MemberIds = new Guid[] { userId };

RemoveMembersTeamResponse removed = (RemoveMembersTeamResponse)service.Execute(remove);

}

posted @ lunedì 7 maggio 2007 17:16

Print

Comments on this entry:

# Mulberry Vesker

Left by Mulberry Vesker at 29/11/2012 06:34
Gravatar
g Spring City Road politistasjon etter ytterligere tre personer pågrepet. Hev narkotika Mount grip" den ensomme kvinne over 20

# vroot for mac

Left by vroot at 27/02/2017 09:04
Gravatar
Reliance has announced New Tariff Plans & Jio Prime Membership from march 1st. Nowadays the worlds have changed tremendously since by the time technologies are playing an essential role in our lives. It’s very tough even to think life without technologies. vroot for windows

# re: [CRM] Aggiungere/Rimuovere user dai Team via codice

Left by October Calendar at 08/08/2018 09:07
Gravatar
Comments have been closed on this topic.
«novembre»
domlunmarmergiovensab
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567