Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

cannt patch lookup column

(0) ShareShare
ReportReport
Posted on by 19

Hi there,

I have a lookup column and I want to add new data to a list if data does not exist.

I tried this code below to check if data already exists

 

 

 

 

 

If(IsBlank(LookUp('Votes-Details_2',Idea_ID = ThisItem.ID)),
Set(varLoad,true); 
Patch(
 'Votes-Details_2',
 {
 Ideas_Id: Gallery3_3.Selected.ID, Title:Gallery3_3.Selected.Title
 }
);
Set(varLoad,false);,false),false);

 

 

 

 

But I get an error at the first line of code:

incompatible types for comparison, These types cant be compared: Record, text

Categories:
  • WarrenBelz Profile Picture
    WarrenBelz 145,508 on at
    Re: cannt patch lookup column

    @ashwagamz ,

    You have three posts on the same subject - I have responded to one here

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

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard