cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zubayer
Helper I
Helper I

Want to send birth email and team chat please help me on this

In our organization, we sent emails for users' birthdays but now we want to create an automated flow where users will get an email from a shared mailbox and a team's message on his/her birthday with a birthday card with the user's picture in it. How can I achieve this? Please help me with this. 

3 REPLIES 3
v-yujincui-msft
Community Support
Community Support

Hi @Zubayer ,

 

Do you want to send an email to the user on their birthday and also send a message in Teams?

I have made a test for your reference.

 

formatDateTime(addHours(outputs('Get_user_profile_(V2)')?['body/birthday'],8),'MM-dd')
formatDateTime(utcNow(),'MM-dd')
0001-01-01T00:00:00Z
base64(outputs('Get_user_photo_(V2)')?['body'])
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "Happy Birthday",
            "id": "Title",
            "size": "Large"
        },
        {
            "type": "TextBlock",
            "text": "@{outputs('Get_user_profile_(V2)')?['body/displayName']}",
            "size": "Medium",
            "weight": "Lighter"
        },
        {
            "type": "Image",
            "url": "data:image/png;base64,@{base64(outputs('Get_user_photo_(V2)')?['body'])}"
        }        
    ]
}

 

vyujincuimsft_0-1645004125886.png

vyujincuimsft_1-1645004257051.png

vyujincuimsft_2-1645004332042.png

Result Screenshots:

vyujincuimsft_3-1645002587349.pngvyujincuimsft_4-1645002604089.png

 

In addition, here are some links that can help you:

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Send-A-Happy-Birthday-Email-Messag...

https://medium.com/@swathymothilal95/birthday-wishes-microsoft-power-automate-912ad998c15c

https://www.enjoysharepoint.com/send-happy-birthday-email-to-employees-using-microsoft-flow/

 

Best Regards,

Charlie Choi

 

 

Zubayer
Helper I
Helper I

Hi @v-yujincui-msft,

Thanks for your response. With the link you have shared I was able to make the automated flow to send email to the users but unable to send teams to chat (not channel). Also, our HR team uses a different template as an embedded email with an employee's picture in it. we have 5 different templates and the employee's picture is fixed. but I didn't find any way to use an employee's picture on a random template. 

v-yujincui-msft
Community Support
Community Support

Hi @Zubayer ,

 

Do you want to embed the user's photo in an email? I am afraid it is not supported in Microsoft Flow currently, and  photo was shown as red X in Outlook. In addition, I did a test and it seems that 'Post adaptive card in a chat' is also temporarily unavailable.

 

Best Regards,

Charlie Choi

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (3,292)