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 / Invalid template error??
Power Automate
Unanswered

Invalid template error??

(0) ShareShare
ReportReport
Posted on by 2

 

Hi, I am very new to Flow, Expressions and Formula. I have created a Survey in Forms and I have been trying to get Flow to send an email to a list of recipients, if the customer scores us below a 9, I want a warning follow up email to be sent to the listed staff. If the customer scores us a 9 or 10 it will send an email to all staff praising the customer service rep for a job well done. I had it kind of working but it would not see the difference between the two and send either a follow up or praise email no matter what the score was? This is the formula I am currently trying to use but I get this error can anyone help a very novice user??

 

@less(body('Get_response_details')?['r7f8ef17a0f7942859ac5e0035ee95603'], 9)

 


InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2472': 'The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.
Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    Hi @Lsmad,

     

    Could you please share a full screenshot of the configuration of your flow?

     

    I have made a test on my side and I converted the value of Score using int() function, because the value of Score is actually in String format here.

     

    @less(int(body('Get_response_details')?['rdaa06e59c8e24bfb9837f3453cb67fe3']), 9)

     

    Image reference:

     

    36.PNG

     

    The flow works successfully as below, displayed as false when the user submitted 10:

     

    37.PNG

     

    Please take a try and let me know if issue still exist.

     

    Best Regards,

    Barry

  • Lsmad Profile Picture
    2 on at

     thanks 

    v-bacao-msft,

     

    that works perfectly now, thanks so much for helping me with that.

     

    Cheers,

    Lsmad

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard