When I’m trying to send an email from a People Picker field value…

This is definitely a “for my own rememory” file…

Occasionally I’ll have a form customized with InfoPath, and it will contain a rule that tries to send an email based on a person’s name entered via a People Picker field. Just dropping the Display Name or the AccountID value doesn’t work to get the mail properly addressed. The following *does* work, however:

concat(substring(AccountId, 8, 6), “@contoso.com“)

The value in our AccountId field starting in position 8 for a length of 6 characters will work for an email name if followed by the @domain name.

This means more to me than it will to any reader, but it’ll save me from having to try and find an example of where I used that rule to make it work…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s