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 / Copy a lookup field wi...
Power Automate
Answered

Copy a lookup field with blank value don't work (The supplied reference link -- xxxx-- is invalid)

(0) ShareShare
ReportReport
Posted on by 5

Hello,

 

I have an issue regarding a flow that copy a lookup field into a field. If in the CRM, the field has a value, the flow works fine. If the record is empty, the entire steps do not work and I have this message "The supplied reference link -- xxxx-- is invalid. Expecting a reference link of the form /entityset(key)."

I know that I can use some test conditions but I can have more than 10 fields to copy in the same step !

Comparing to the old way (Workflow) where it was easier, I'm lot.

 

Do you know a way to force the copy even the value is empty ?

 

Many thanks

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

    Sharepoint? Dynamics? CDS?

    Can you share a screenshot from your current flow design?

     

    Did you tried aready with a WDL conditional expression empty() based?

    if(empty(<your dynamic content here>),'',<your dynamic content here>)

     

    Thanx!

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @FranckBLA 

     

    You can achieve this in different ways.

     

    1. Add an If condition to check whether the value is null or empty then set the variable as null or the value.

    2. Try using expression coalsec(yourdynamicfield,null). This might be easier. I haven't tested from my side. So please try and let me know.

    3. You can add one single expression like below

        if(greater(length(outputs('Compose')),0),float(outputs('Compose')),null)

     

    Thanks

     

    Thanks

  • FranckBLA Profile Picture
    5 on at

    Thanks for your answer,

     

    The screenshots below show how I set steps into CRM.

    As I can have a lot of fields to copy, I though that use If condition is not a solution.

    I can try the others solutions you  propose. Can you help me please ?

     

    Capture0.JPGCapture1.JPG

     

     
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @FranckBLA 

     

    Not sure you can use the coalsec expression with contact to construct the string you want.  Since these are composite lookups I can see you are setting with entity schema name and dynamic mapping value. So your only option is the IF condition for each ones. 

    Thanks

  • shadzk Profile Picture
    15 on at

    I was having error this error: The supplied reference link -- systemusers() -- is invalid. Expecting a reference link of the form /entityset(key).

     

    I just used this and it worked

    shadzk_0-1705407657439.png

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard