How nice would it be if UIPath would enhance its Send Outlook Mail Message activity to allow users to include their default email signature?
Something like this…
UIPath wishlist: looking forward to this feature enhancement!
Photo is edited of course hehe but in the meantime that’s it’s not possible directly, here’s a pretty neat workaround I’ve discovered.
But first, here’s the situation. I have a robotic workflow that sends email messages on Outlook, and it’s being run by multiple users, depending on who’s available. Naturally, the email will be sent from their personal accounts, so the signature must be theirs as well.
I need a way to automatically fetch their signatures as HTML and attach it to the email body. The challenge for different users is that the signature details are different as well, so you have to generate the appropriate ones every time you run the robot.
One way would be to prepare a text file containing a signature template and have them edit the details every time they run the workflow. You can then read this text file and append it to the email body.
But another, more straightforward way is to fetch their signature files directly from Outlook’s directory.
Somewhere in your user account’s roaming folder is your outlook email signatures. These are the email signatures you’ve created using your mailbox. In my case, they’re stored here:
The folder structure may differ per setup but if you’re working with users within the same network or have the same MS Office setup, chances are the path is the same, except for the username of course. And you can get that using the Environment.username variable.
So now that you have the direct path to your Outlook’s default email signature, you know the rest. Read it, store it in a text file, and finally append it to your message body. Don’t forget to tick IsBodyHtml! 🙂
Caveat? Images don’t work, so there’s that.
Hope this helps somehow!