Using Active Directory Searching/Lookup in a SharePoint/MOSS 2007 Workflow (with Visual Studio 2008)
- Posted: Nov 29, 2007 at 4:08 PM
- 25,463 Views
- 1 Comment
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
This is the eighth in a series (the series is listed at the bottom) of "How To " Videos that I have created to show .NET Developers how to build document workflow in a SharePoint environment.
In the How to Videos that I produced on "Building Approval Workflow's" and "Escalating Workflow's (for overdue tasks), I kept things simple (focusing on the Workflow) and did not do dynamic lookups of people/users against Active Directory (AD), choosing to "hard code" the users in the workflow.
In this example, I take one of those workflow's (Basic Approval Workflow) and show you how you can do a "Dynamic Lookup or Search" of Active Directory for information (The Manager of a user) using .NET Code (System.DirectoryServices).
Code Download & Workshop Document Location: Click here
Click here to access the
larger framed Hi-Resolution Version from my blog!
You can also download the Freely Downloadable "Building Custom Document Workflow with MOSS with Visual Studio 2008" workshops (Developer Content) on my blog (www.sheltonblog.com)
under the SharePoint Tag, or directly by clicking
here.
Checkout my other Active Directory (non-SharePoint Specific) with .NET Videos:
(The same code works in SharePoint)
My other SharePoint videos:
Note: If you have questions/comments, please leave them on my blog at this link, as I do not monitor this feedback URL.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
use Web.SiteUsers to retrieve a SPUser Object.
reason:
if the user never loged in to the SharePoint Site on which the workflow is runing he/she will not be in the AllUsers collection and you will get an exception.
Andrej
Remove this comment
Remove this thread
close