Current user

L

Lunch Money

I am using Infopath forms for the task forms in a MOSS workflow. The workflow
is running under a system account and that is what is passed in as
e.principle. How can I pass the current logged in user back to the workflow
to be used in logging history items?
 
G

Gavin McKay

Hello,

If you have access to the data in the Infopath form you could add an element
that included the current user's information. Then when the infopath data is
passed to the worflow you could pull out the user's information and use as
required. There are a couple of articles about how to get the current user's
info via Infopath.

If you don't have access to the Infopath data, you might be able to get the
original caller's information via .NET using something like:

WindowsPrincipal wp = (HttpContext.Current.User as
WindowsPrincipal);

although this just may return your system account.

HTH

Gavin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top