Issue with Getalldepartments
I have been working on a workflow for a new user and have come across an issue I was hoping the group could help with.
Here was the base structure so far.
- Detection check for current logged on user with relevant pieces to allow for the use of all information of the user who is filling out the form
- Form that says hi <current user> enter First name of user to create, enter last name of user to create.
- I then use all of that information to create the new account in AD (first.last = UserID, firstname.lastname@example.org = email address, first last = common name)
- Email response to the person filling out form with details of account creation
That worked exceptionally good.
I wanted to add the selection of the "Department"
I injected a "getalldepartments" object in just before the webform, added a dropdownlist which used an array to show all available departments within the CMDB. This list worked "YAY"
Trouble is now when I run the form, the name of the person filling out the form is not correct. First time it was "backup Exec"
"Huh?" you say!!!
yeah me too.
I still went through it and created a user called "Rob Robson"
It got created in AD with teh Department too. Thats great.
Now when I run the form it comes up with Rob Robson for the person filling out the form.
Anyone have any idea on this?