Get email from username by Flow
-
19-02-2021 - |
سؤال
I have created a Sharepoint List with a button that triggers Flow.
In this Flow I want to send an email to the person from the column "Zapůjčeno - zo...". The name in this column is the user name of the MS Sharepoint user.
How to solve this? For this example, the username is "Frantisek Dolejsi / IAB" and the email is "frantisek.dolejsi@o****.com
المحلول
Here is what you can do:
- Create a Microsoft flow with trigger set to For a selected item.
- Add Send Email action to your flow.
- Set To field of email action to your list item field which contains the email address of user. If email address is not directly stored in list then you can fetch it using some action in Office 365 User connector.
- Run the flow from list view using column formatting (as you are already doing).
Only catch here is to get the email address of user and it depends on how you store it in your SharePoint list.
If you have stored it in Person or Group column then you can using dynamic content in flow where you will find email address of corresponding field.
Check below references for more information:
لا تنتمي إلى sharepoint.stackexchange