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 / Condition not satisfie...
Power Automate
Unanswered

Condition not satisfied due to string/integer comparison

(2) ShareShare
ReportReport
Posted on by 2
Hi, I am trying to build a flow which, after getting an id (string) info from an API call, sends an email to a specific address.
 
In the condition, I included "if the value is equal to string(322) which is exacly the value I am looking for, but the condition is never satisfied, even the result of the API call contains the parameter.
 
JSON element:
If I change "is equal to" with "contains" in the condition, I get this error:
 
Unable to process template language expressions for action 'Condizione' at line '0' and column '0': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.
 
What does it mean? It should be correct...
 
Thank you
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    HI
     
    I am going to skip the null question because all the details aren't there to try to answer.
     
    Clearly the data you are comparing isn't matching even though you think they should. I dont know how any Address piece could just be that little number, but foreign countries possibly.
     
    So how do you check?
    add a Compose above your Condition
    In the Compose input add 3 things
    like this
    where the ugly black dash is a dash :-). Now you will see what two values you are comparing

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