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 Automate
Unanswered

Conditions issues

(0) ShareShare
ReportReport
Posted on by 5

Hi

 

I'm building a flow where I want to set 3 conditions before sending out an email. I want to send out an email when a person has birthday and reaches a specific age (61 in this example) I have succeeded with the the first two conditions (day and month) but the final one where I look at a calculated column that calculates a persons age it fails. I'm far from an expert and just uses bits and pieces from the internet to put the different flows togheter. I have used dynamic content when looking at the calculated colum age (Antall år) and I want to meet all three conditions; dd, mm and 61

 

Any advice?

 

mgms_0-1644928685974.png

 

ERROR MESSAGE:

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Integer' are incompatible.

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @mgms 

    One way to solve this is to replace 61 in your condition with the following expression:  string(61)

    image.png

     

     

  • pandeysuyash Profile Picture
    58 on at

    Hey mgms,

     

    To fix this issue immediately you need to put 61 between singles quotes like this '61'

     

    On a different note

    It seems to me that you are comparing age so I would suggest using a mathematical operator like less than 61 instead. You have used contains instead.

     

     

  • mgms Profile Picture
    5 on at

    If anyone else struggles you need to compose the output you want to match and use that when setting up conditions

    mgms_0-1644936919677.png

     

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard