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 / Email notification for...
Power Automate
Unanswered

Email notification for overdue certificate date in excel sheet

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

I need your help with below topic:

I have a table in Excel like this:

Ama19x89_0-1705496711151.png

and I want by using Power Automate recieved emails, about overdue Expiration Date. I used such a flow:

Ama19x89_1-1705496767847.png

A condition step has such details:

Ama19x89_2-1705496845147.png

items('Foreach')?['ExpirationDate'] is less than utcNow() 
 
Unfortunatelly I recieved a message that my test is faild due to such a message:
 
InvalidTemplate
Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.
 
Can Anybody please help me to resolve this case?
Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at

    Add another expression:

    empty(items('Foreach')?['ExpirationDate']) is equal to false

     

  • Ama19x89 Profile Picture
    12 on at

    Thank you! but right now there is another error/condition not met:

     

    Email step got this info after test conducting:

    ActionBranchingConditionNotSatisfied

    The execution of template action 'Send_an_email' skipped: the branching condition for this action is not satisfied.

     

    Ama19x89_0-1705660073018.png

    So I didn't recieved any mail 😞 Could you help to fix it?

  • VictorIvanidze Profile Picture
    13,073 on at

    Investigate why the condition returns false.

  • Ama19x89 Profile Picture
    12 on at

    Ama19x89_0-1705660622763.png

     

    A table looks like here:

    Ama19x89_1-1705660665495.png

    Maybe I have something wrong with format date and Power Automate doesn't recognize format date in Excel? 

     

    In List rows present in a table STEP I didn't add any additional filter query to transiotion my format date, maybe this is a solution?

     

    Ama19x89_2-1705660787519.png

     

  • VictorIvanidze Profile Picture
    13,073 on at

    Use formatDateTime() expression yyyy-MM-dd for both dates.

  • Ama19x89 Profile Picture
    12 on at

    Could you specify where and what exacly should I write in expresion? Because right now there is a failure and it doesn't work:

     

    Ama19x89_1-1705662752960.png

     

     

    Ama19x89_3-1705662821444.png

     

  • VictorIvanidze Profile Picture
    13,073 on at

    In the condition.

  • Ama19x89 Profile Picture
    12 on at

    Like this? it is still doesn't work:

    Ama19x89_0-1705664056583.png

     

    Ama19x89_1-1705664133955.png

     

  • VictorIvanidze Profile Picture
    13,073 on at

    Before the condition create 2 compose actions for both formatted dates. Show their outputs.

  • Ama19x89 Profile Picture
    12 on at

    In compose1 ( inputs": "@formatDateTime(items('Foreach')?['ExpirationDate'],'yyyy-MM-dd') )

    I got failure: 

    InvalidTemplate

    Unable to process template language expressions in action 'Compose1' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.

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