2014-07-09 01:13 PM
3 REPLIES 3
Re: Send email to current user
2014-07-09 08:42 PM
Can you give me some more background on what you are trying to do and why you are doing it ?
IIRC, when you create a local user in WFA server, you can specify the email address of the user.
I will have to check, how the same works in case of AD/LDAP integration.
2014-07-10 12:41 AM
You can get the user-name of the user who executed the workflow from a command, but for email id, the API doesn't provide. It can be taken as an improvement for future.
You can use the below cmdlet to get the name of the workflow executor:
But you can make use of this for your requirement if:
1. You create WFA local users with their email IDs as Usernames.
2. If you use Domain Login for WFA, then you can change the User name attribute in WFA Configuration from sAMAccountName to UserPrincipalName i.e. UPN assuming the UPN and Email IDs are same ( they generally are ). Now you login to WFA as user@Domain.com and since this is also the email id, the above api can get it.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.