Hello,
How would I go about taking a variable and turning it into an email address?
For example, I have a flow that retrieves a users first and last name that is stored into a variable and I need to send that user an email.
FirstNameLastInitial@domain.com
John Contoso > JohnC@domain.com
Solved! Go to Solution.
@frankc9
Hope you are well,
I believe you can achieve this by using multiple actions,
Hope this helps
Best Regards
Try this expression:
concat
(
split(variables('Name'), ' ')[0],
substring(split(variables('Name'), ' ')[1], 0,1),
'@domain.com'
)
Screenshot:
Thank you for the quick reply!
I am sorry, I should have added if it would be possible to do this in Automate Desktop? Currently, I have an unattended desktop flow triggered by the cloud connection.
I have no doubt it is possible. But I have hardly use Power Automate Desktop, so I cannot tell you how to do it. It's something I hope to spend more time on very soon.
@frankc9
Hope you are well,
I believe you can achieve this by using multiple actions,
Hope this helps
Best Regards
Hope you are doing well yourself! This was exactly what I was looking for and I was able to piece it all together. At one point I was in the right spot, but couldn't figure out how to pull the first and last name from the split text.
User | Count |
---|---|
92 | |
43 | |
20 | |
19 | |
15 |
User | Count |
---|---|
135 | |
54 | |
44 | |
40 | |
31 |