web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Does anyone know how t...
Power Automate
Answered

Does anyone know how to handle empty lookup in update action of cds?

(1) ShareShare
ReportReport
Posted on by 193

I am updating one entity with two lookups. The GUID for the lookups are in two variables which are getting populated from List record action of another table.  

 

Everything's work fine when variable contain the guid however, it's failing when there's no record from the list record action and variable is empty. Instead of nullifying the lookup field, update action is giving an error.

 

 

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

    @nmk 

    Take a look at the coalesce() expression.  It is designed to return the first non-null value from the parameters presented to it.  In other words, you can provide a default value if the lookup is null.

     

     

  • nmk Profile Picture
    193 on at

    @ScottShearer Thanks.

     

    No i don't want to skip if it's empty. I want to nullify the lookup if there's no value meaning I want to remove the existing value on the lookup

     

    e.g. if lookup already has 'A' as value and if I don't get any value from List Record, I should update the existing A to null.

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @nmk ,

     

    Would you please share a screenshot of your flow and explain more details about your requirement?

     

    Best regards,

    Alice       

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

  • Verified answer
    nmk Profile Picture
    193 on at

    Thank you, everyone.

    No, we can't assign null variables/value to lookup. If someone needed to blank out the lookup then it can be done through unrelated action.

     

     

  • Digit89 Profile Picture
    33 on at

    To specify a bit more the previous answer, you can use the CDS "Unrelate Record" action as a workaround while MS fix the possibility to set a null value (February 2021).

    Reference.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard