Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

How do I identify the user filling out the form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Milton Plummer - 23 Jan 2006 14:20 GMT
I have created a form with info path that I have published on a Sharepoint
site. Both the Sharepoint and the form are synced with our active directory
accounts, therefore both the form and the sharepoint have already identifed
the current user. I am trying to build a submit datasource in the form to
automatically e-mail the creater of the form whenever it is changed. I know
this can be accomplished by setting up notifications in sharepoint, but I was
hoping to also set up notifications in the infopath form. Is it possible to
identify the user who created the info path form?
Rene Schrieken - 24 Jan 2006 09:34 GMT
You can with VSTO, write managed code  to obtain the current user and then
use then System.Web.Mail to send an email.

I'm not sure if this can be done with no managed code...
Milton Plummer - 24 Jan 2006 13:06 GMT
Thank you, That is what I suspected. Do you by chance have a sample of the
code that I would need to use?

> You can with VSTO, write managed code  to obtain the current user and then
> use then System.Web.Mail to send an email.
>
> I'm not sure if this can be done with no managed code...
Yueli Du - 30 Jan 2006 19:01 GMT
You can call System.Environment.UserName to get current user's network Login
ID (which is corresponding to distinguishedName in Active Directory)

> Thank you, That is what I suspected. Do you by chance have a sample of the
> code that I would need to use?
[quoted text clipped - 3 lines]
> >
> > I'm not sure if this can be done with no managed code...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.