Jan-05-2023, 03:13 PM
Thanks for your support. The loop ends when the display Name respectively the name behind the provided string can be found in the directory. If it can be found then the username shall be used as variable instead of the search string variable
Example:
In a document there is „Peter Pan“ named as responsible (this will be taken over als string to the function)
Now the loop shall take a look for „Peter Pan“.
If it is found, the „Peter Pan“ (which is provided for the function) should be replaced with „peter.pan“ (which is the username not the display name, in the sense of a dictionary lookup“
If it is not found (e.g. due to a typo „Petr Pan“), the user can correct the name within this loop. If then the name is found, see above.
The input variable will be replaced with the variable from the dictionary string to proceed the next code lines with this username (e.g. to automatically assign tasks to this user name as it is provided and verified by the dictionary lookup)
Example:
In a document there is „Peter Pan“ named as responsible (this will be taken over als string to the function)
Now the loop shall take a look for „Peter Pan“.
If it is found, the „Peter Pan“ (which is provided for the function) should be replaced with „peter.pan“ (which is the username not the display name, in the sense of a dictionary lookup“
If it is not found (e.g. due to a typo „Petr Pan“), the user can correct the name within this loop. If then the name is found, see above.
The input variable will be replaced with the variable from the dictionary string to proceed the next code lines with this username (e.g. to automatically assign tasks to this user name as it is provided and verified by the dictionary lookup)