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 / Populate Lookup with Null
Power Automate
Answered

Populate Lookup with Null

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I'm building a flow that should populate some Lookup fields on a record in CDS. However, it is possible that some of these lookups are empty and therefor should be empty. I'm having trouble with this as Flow always expects a valid ID in the lookup. I tried the following expression and replaced null with blank, '' , etc. Nothing seems to work. Any ideas on how to do this? 

 

if(equals(<Record ID>, null), null , <Record ID>)

 

 

Thanks!!!

 

 

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    Did you try with

     

    concat('')

     

    already?

     

    If it does not work, my suggestion is to create a dummy record to represent null scenarios, and add its corresponding ID.

    Hope this helps

  • Henki Profile Picture
    16 on at

    Thanks for the reply!

     

    Concat doesn't work, it still expects an ID:

    "message": "The supplied reference link -- -- is invalid. Expecting a reference link of the form /entityset(key).",

     

    Creating a dummy record might be a workaround, I prefer the field to be empty though... Hope that's possible!

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

     

    Hi @jouke ,

     

    Could you provide a screenshot of the Flow configuration?

    I have made a test on my side, if I enter null in the lookup column, the flow runs successfully.

    6.PNG

    Besides, you could use condition to check if record id is empty, if yes, leave the lookup column blank.

     

    Best Regards,

  • Henki Profile Picture
    16 on at

    The flow creates a Contact record from a JSON, see below. It is possible for some lookups, Nationality for example, to be empty. When I try to fill the lookup with the JSON, it throws an error when its null. I tried with expressions as well, but i still get this error:

     

    An error occurred while validating input parameters: Microsoft.OData.ODataException: The 'odata.bind' instance or property annotation has a null value. In OData, the 'odata.bind' instance or property annotation must have a non-null string value.

     

    2020-03-24 11_39_03-Window.png

     

    2020-03-24 11_33_05-Window.png

    2020-03-24 11_33_31-Window.png

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @jouke ,

     

    As mentioned in my previous reply, if it is not a required field, you could check if the Id parsed in the above step is empty first.

    If it is null, you could leave this lookup column blank.

    Image reference:

    21.PNG

    Please take a try.

     

    Best Regards,

  • Paul Baarn Profile Picture
    on at

    Hi,

     

    I realise this is an older reply, but can you tell me which connector you are using? I think this works in the old connector and not in the new Current Environment connector.

     

    Best, Paul

  • Henki Profile Picture
    16 on at

    Hi Paul,

     

    I'm using the CDS Current environment connector. 

    Seems the only way i get this to work is using @v-bacao-msft

  • MichaelFP Profile Picture
    1,977 Moderator on at

    Hi!
    Today I have talked with Microsoft Support and appear to be fixed. But in my environment still happens. This is something for a low-code platform unacceptable. I have to increase the complexity of my flow because of this. In addition, my flow is getting slow in the designer.

  • FU Microsoft Profile Picture
    112 on at

    Same problem still exists in either scenario (including Current Env).

  • reedma4 Profile Picture
    6 on at

    Spoke with Microsoft in a current ticket (120080424004016) and we received an update that this is not fixed and won't be made available until February - March timeframe. Very challenging when updating multiple lookups!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard