Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

My flow template successfully ran, but the action item (send an email) was not received

(0) ShareShare
ReportReport
Posted on by

I used Microsoft Flow's template "Send a Happy Birthday email to employees on their birthday" and whenever I would test the run, it would say "Flow Failed". I received help regarding this issue yesterday in Community Forums and now the flow says "Successful". However, the flow is supposed to send an email and it does not. It's been 24 hours. Why isn't the email being sent? Or if it is being sent, why am I not receiving it?

 

Here is a picture of my flow:

Capture.JPG

 

And here my condition in advanced mode:

@equals(equals(items('Apply_to_each')?['Birthday_x0020_Date'], formatDateTime(utcNow(), 'MM-dd')), true)

...and basic mode:

equals(items('Apply_to_each')?['Birthday_x0020_Date'], formatDateTime(utcNow(), 'MM-dd')) is equal to true
 
Here is a picture of my list in SharePoint:
Capture 2.JPG

 

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    @AlanPs1 

    Isn't that what we discussed in post #24 or did I not do something correctly? I changed my condition to the format you requested. It didn't return false, it just failed.

     

    And I attempted to recreate every template I have, they all didn't work. I don't know what you mean out-of-the-box template. I have one with the two Compose actions, I have the one that filtered out today's date in Get Items, and I have the one that is basically Flow's template with slight formula changes. Which one - or other - are you referring to?

  • AlanPs1 Profile Picture
    2,471 on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    Hi @Anonymous 

    Just before I step out the door. Please can I refer you to post 23 again that I posted.

    I mention this being the expression for "Compose"

    formatDateTime(items('Apply_to_each')?['BirthDate'], 'MM-dd')

    Please check it as I notice earlier in the thread another had you set the compose to

    items('Apply_to_each')?['BirthDate']

    This was when your list was in MM-dd format. Now that it's not ... this may be why you are returning false. This is also why I asked you to use the out of the box template as it has the expressions (formula) as I have mentioned in post 23.

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    @AlanPs1 

    As I mentioned earlier, I recreated every template that I had. The one with the filter, the one with the compose, and the one that is just Microsoft's basic template. None of them worked.

    @v-bacao-msft 

  • Verified answer
    AlanPs1 Profile Picture
    2,471 on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    Hi @Anonymous 

    I would go back to using the out the box template that has no compose actions in it.

    That's kind of what I would have hoped you would have done as I menttioned the new flow & new list. The new Flow using the template out of the box doesn't have compose actions in it.

    Unfortunately, I have run out of time for tonight (UK), but as I posted a few posts back, the new list, with correct date type column has worked for me.

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    @AlanPs1 

     

    The only thing that was in Compose was Dynamic Content: Birthday Date. I just entered in your formula and the flow failed.

     

    Original Compose:

    Capture.JPG

     

    New Compose:

     

    Capture.JPG

  • AlanPs1 Profile Picture
    2,471 on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    Hi @Anonymous 

    Is this what's in both your Compose actions, "Compose" & "Compose 2"?

    Compose

    items('Apply_to_each')?['Birthday_x0020_Date'] 

    Compose 2

    formatDateTime(utcNow(), 'MM-dd') 

     

    If so, Change "Compose" to this so we have matching formats. Otherwise, I advise using the out the box template that has no composes in it. Compose 2 can staty the same assuming theyre in the order I think they are.

    formatDateTime(items('Apply_to_each')?['BirthDate'], 'MM-dd')

     Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    @AlanPs1 

     

    #1 and #2: SharePoint list has a Birthday Date column that uses date type and there is a birthday for today in there.

    Capture.JPG

     

    Both entries return False.

     

    Capture.JPG

    Get Items, Body: (I changed any company information to "----"

    "value": [
    {
    "@odata.etag": "\"5\"",
    "ItemInternalId": "1",
    "ID": 1,
    "Title": "monica@-----.com",
    "Birthday_x0020_Date": "1965-02-22",
    "F_x0020_Name": "Mon",
    "L_x0020_Name": "ex",
    "f5hc": "2016-02-22",
    "xu5a": "Monica",
    "lhos": "--------",
    "Modified": "2019-02-22T17:39:57Z",
    "Created": "2019-02-22T17:36:47Z",
    "Author": {
    "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    "Claims": "i:0#.f|membership|monica@------.com",
    "DisplayName": "Monica --",
    "Email": "monica@----.com",
    "Picture": "https://----.sharepoint.com/sites/-----/_layouts/15/UserPhoto.aspx?Size=L&AccountName=monica@----.com",
    "Department": null,
    "JobTitle": null

     

     

  • AlanPs1 Profile Picture
    2,471 on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    Hi @Anonymous 

    It's strange this isn't pulling through for you as it is for me. Sorry for the issues you are having.

    Can I check a few things ... just to be sure.

    1) the column in SharePoint is using date type

    2) There is a matching Birthday of today in there

    3) Both of the 2 entries in your list return false?

    4) Can I see the expanded output from "Get Items". You can copy and paste the JSON output and paste it in.

     

    My JSON is like (for reference):

    {
     "@odata.etag": "\"1\"",
     "ItemInternalId": "1",
     "ID": 1,
     "Title": "Person",
     "PersonName": "Jane",
     "Email": "Jane@domain.co.uk",
     "BirthDate": "2013-02-25",
     "Modified": "2019-02-22T10:21:54Z",
     "Created": "2019-02-22T10:21:54Z",
     "Author": {
     "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     "Claims": "i:0#.f|membership|jane@domain.co.uk",
     "DisplayName": "Jane",
     "Email": "jane@domain.co.uk",
     "Picture": "https://tenat.sharepoint.com/sites/AlansContent/_layouts/15/UserPhoto.aspx?Size=L&AccountName=jane@domain.co.uk",
     "Department": null,
     "JobTitle": null
     }

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    I also tried to recreate with the Filter flow. It finally said Ran Successfully, however the email is grayed out and I still haven't received an email.

     

    Capture.JPG

  • Community Power Platform Member Profile Picture
    on at
    Re: My flow template successfully ran, but the action item (send an email) was not received

    I just created a new List and Flow, it's still returning False.

     

    Capture.JPG

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,948 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow