Skip to main content

Hi all!!!


I have one problem ... maybe somebody can help me? I explaine my problem:


I have workflow that have custom Server Event. In this event i open exchange web service and work with it. For work with exchange web service i have to send user name and password to impersonate my user but i want to impersonate user from context ... I don't need send password to K@ workflow ...


This is my code of event:


ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
            //service.UseDefaultCredentials = true;
            service.Credentials = new NetworkCredential(
                K2.ProcessInstance.DataFields "UserName"].Value.ToString(),
                K2.ProcessInstance.DataFieldsÂ"Password"].Value.ToString(),
                K2.ProcessInstance.DataFields,"Domain"].Value.ToString());


            service.AutodiscoverUrl(K2.ProcessInstance.DataFieldsp"EmailBox"].Value.ToString(), delegate { return true; });

Be the first to reply!

Reply