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 / Updating file properti...
Power Automate
Unanswered

Updating file properties using AI Builder: if AI boolean extraction field null, return value A; if true, return value B; if false, return value C

(0) ShareShare
ReportReport
Posted on by

I am using AI Builder to create a Power Automate flow that updates file properties with metadata identified by the AI model within the document. I have some boolean (checkbox) fields that I want to return with different values based on whether the field is 'null' (that information does not exist in document), 'true' (checkbox is checked), or 'false' (checkbox is not checked). Is it possible to write an expression that returns A for a null value, B for a true value, and C for a false value of the field?

 

I am referring to this solution but with the added wrench of the variable being based on an AI extraction field: https://powerusers.microsoft.com/t5/General-Power-Automate/If-null-return-value-If-not-null-return-formatdatetime/td-p/351183

 

I think I need to initialize and then set a variable but I am not sure how to define the variable. I'm also referring to this solution: https://powerusers.microsoft.com/t5/Building-Flows/Use-If-Expression-to-Evaluate-a-Variable/td-p/580298 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    For anyone interested, I solved this problem (perhaps inelegantly) by creating a condition where if the field equals null, then leave metadata field blank; if field returns not null, then (ugly line of 'if' expressions).

  • ecombs Profile Picture
    148 on at

    Can you show?

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard