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 / Conditional rule for m...
Power Automate
Unanswered

Conditional rule for missing JSON Data

(0) ShareShare
ReportReport
Posted on by

Hello

 

I am trying to write a condition which identifies if a value is in a set of JSON data or not. I have built a custom connector to receive information about some devices. This then loops through each device and inputs the desired information into SQL. One of the devices is missing some of the required peices of information at which point the flow fails. 

 

Is there a way to write a condition maybe to check if that vaule exists. Or is there a way to just say carry on if there is no data for a device? 

 

I have tried the following query but that doesnt seem to work - contains('Parse Chrome Device','activeTimeRanges')

 

Here is the JSON data

01JSON.png

 

Is is my completed flow

 

01Flow.png02Flow.png

 

This is the error i have been getting

01Error.png

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @adamjohnson42,

     

    You can use the empty() function to check the value of activeTimeRanges, if it is null, it will return a true boolean value.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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