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 / Does anyone know how t...
Power Automate
Unanswered

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,270 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
    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

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 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard