web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send Automatic ...
Power Automate
Unanswered

How to send Automatic Birthday / Anniversary Email to Employees using Power Automate (MS Flow) [IT or EN]

(0) ShareShare
ReportReport
Posted on by 12

Following this guide: https://www.youtube.com/watch?v=tK99-zUFkjo I receive this error message:

 

"The execution of template action 'Applica_a_ogni' failed: the result of the evaluation of 'foreach' expression 'valor@{outputs('Ottieni_elementi')?['body/value']}' is of type 'String'. The result must be a valid array."

 

Someone has resolve it o can share me another guide?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @danielececcarel,

     

    It looks like there is a string value (valor) in front of the value Dynamic content field?

     

    If so, can you remove that part and just use value (list of items). Or as an expression just use:

    @{outputs('Ottieni_elementi')?['body/value']}

     

  • danielececcarel Profile Picture
    12 on at

    Thanks @Expiscornovus .

     

    Now I've another problem:

    After verifying that today's date coincides with the date of birth, I have to retrieve the email address of this employee (entered in an "Email" column). how can i retrieve this address and have it available as a variable to be inserted in the form for sending the email?

     

    DateOfBirthday_Email.PNGList of Users.PNG

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @danielececcarel,

     

    You could refer to a property of an item in an apply to each by using the function and add the internal name of the field to that.

     

    item()?['internalnameoffield']

     

     

    In your setup you could probable add this as an expression to your To field (A)

     

    item()?['Email']

     

     

    If you want to double check for the internal name of the field have a look at @ekarim2020 his blog:

    https://elliskarim.com/2021/12/20/finding-the-internal-name-of-a-sharepoint-column/

     

  • danielececcarel Profile Picture
    12 on at

    @Expiscornovus I am not able to do it 😞

    Knowing how the columns are called (I sent you the screenshoot), do you write me exactly the commands and controls to enter?

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @danielececcarel,


    Below is a small animation how you could add this expression.

     

    AddExpressionToTo.gif

  • danielececcarel Profile Picture
    12 on at

    @Expiscornovus it's working!

     

    Now, last question: how i can attached an image? I try but i can view the image in the email received (see the attaced). 

     

     

     

    Image.PNG

  • danielececcarel Profile Picture
    12 on at

    @Expiscornovus solved looking on HTML guide.

     

    The routine is ready, thanks for your support. Last last question (you are my routine boss :)). Do you know how i can insert massively, perhaps from an excel file or other, about 1000 records in my list?

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @danielececcarel,

     

    Great to hear that it works 🙂

     

    For the batch insert of list items I would suggest to have a look at this blog from @Paulie78 

    https://www.tachytelic.net/2021/06/power-automate-flow-batch-create-sharepoint-list-items/

     

  • knsrinath Profile Picture
    527 on at

    Hi @Expiscornovus 

     

    I have more than 500 employees with Images. The flow is failing due to Get Items Size is more than 200MB.

     

    Can you please help me solve this and I need to send one day one email with all the employees who ever is having birthday on particular day.

     

    Thanks & Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard