private string YoneticiAta(int oracleyoneticiId,Guid userid, IOrganizationService service) {
string ileti = string.Empty;
try {
SystemUser yonetici = Kullanici.SatisTemsilciBul(oracleyoneticiId, service);
if (yonetici != null && yonetici.Id != Guid.Empty) {
try {
SetParentSystemUserRequest req = new SetParentSystemUserRequest();
req.UserId = userid;
req.ParentId = yonetici.Id;
req.KeepChildUsers = true;
SetParentSystemUserResponse resp = (SetParentSystemUserResponse)crmService.Execute(req);
}
catch (Exception ex) {
ileti= "Yonetici atamada hata olustu.Hata :" + ex.Message;
}
}
}
catch (Exception ex) {
ileti = ex.Message;
}
return ileti;
}
Hiç yorum yok:
Yorum Gönder