Skip to main content

Notifications

Power Automate - General Discussion
Answered

Empty lookup - Add new row dataverse

(1) ShareShare
ReportReport
Posted on by 32

Hey, not had much luck with this discussion group but lets see. 

 

I have a lookup column that i am patching with 'Add new row' with dataverse. 

I am doing this : 

 

JasonHoffoLeic_0-1671468735416.png

And this works - so i have the table name and a variable which holds the guid. 

 

If the guid is empty then i just want to patch NOTHING 

 

So I have looked at 

 

if(empty(item()?['InvoiceRecipient.DisplayName']),null,item()?['InvoiceRecipient.DisplayName'])

 

Then works in my example variable but as i want to add the exact command if it is NOT NULL then I am struggling as this causing an error : 

 

if(contains(outputs('Compose'),null),"",/avg_uwproducttables({outputs('Compose')}))
/avg_uwproducttables(@{outputs('Compose')})

 

and i guess it is becasue the /avg_uwproducttables is in the column (so to speak) and not in a formula 

as my screenshot highlights 

 

So how can i make this IF statement partly as an expression and partly as text in the field ? As per my screenshot. 

 

Any help would be amazing... 

 

Thanks alot guys and gals 

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: Empty lookup - Add new row dataverse

    Not sure why you have the contains function but Try concatenation,

    SudeepGhatakNZ_0-1671484233368.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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard