cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Mgodby
Level: Powered On

RemoveIf not working with lookup field?

I'm trying to delete entities that match a certain criteria:

I wanted to do using a lookup field  but noticed that it doesn't seem to work.

 

This is the my code using the lookup up script:

 

RemoveIf('Purchase Requisition Copy Tos', 'Requisition Number'.'Requisition #' = "1059");

 

 

That doesn't work but when I use a text field like this, it does:

 

RemoveIf('Purchase Requisition Copy Tos', 'Requisition Number Holder' = "1059")

 

 

 Now you might think it's because the lookup field is empty,  but it's not checked it using a Gallery and the entities do have data and it's "1509".  Can it just not find the lookup field's value or something?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: RemoveIf not working with lookup field?

Hi @Mgodby ,

 

I just tested with a similar formula like:

RemoveIf(Custom,Lookup.fullname="xxx")

This works for me.  


 
What is the field type of 'Requisition #' from your source entity?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
EricLott
Level 10

Re: RemoveIf not working with lookup field?

Can we see an example of what builds this collection? I'm not sure how your column reference 'Requisition Number' has another reference called 'Requisition #'. I may just be unaware of this function, but I don't see how this works.

Mgodby
Level: Powered On

Re: RemoveIf not working with lookup field?

It's a lookup field. I have the same thing in my gallery and it shows the data.

 

lookupfield.png

 

This is my gallery and it uses the same entity as the one I use in the RemoveIf() and it has the data I'm trying to use.

galleryvalue.png

 

 

 

 

Community Support Team
Community Support Team

Re: RemoveIf not working with lookup field?

Hi @Mgodby ,

 

I just tested with a similar formula like:

RemoveIf(Custom,Lookup.fullname="xxx")

This works for me.  


 
What is the field type of 'Requisition #' from your source entity?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (2,740)