Skip to main content

Notifications

Power Automate - Building Flows
Answered

Filter query to filter out devices with a null value

Posted on by 2
I am using a filter array action to query a service now table and filter out CI's from the CMDB table which match a specific value in a custom attribute created. I am looking to update my query to exclude devices from the table if a specific attribute is blank.
 
My current query is below which filters devices in the cmdb_ci_wap_network table with the provisioning_status attribute value set to Ready for Provisioning.
 
and(
equals(item()?['sys_class_name'],'cmdb_ci_wap_network'),
equals(item()?['provisioning_status'],'Ready for Provisioning')
)
 
I am looking to update the query to filter on the same values, but also look at another attribute, in this case the MAC_Address, and exclude the CI if the mac address attribute is blank.
  • Verified answer
    MichaelFP Profile Picture
    MichaelFP 1,463 on at
    Filter query to filter out devices with a null value
    you can try not(empty(item()['MAC_Addressfield']))
     
    If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as answer ✔️. This is help the community.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard