cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TrulsB
Helper III
Helper III

Check if a record exist in a Sharepoint multivalue lookup field

I have to Sharepoint lists. 

One list is called "Warranty" and another list is called "Product".   

In the Warranty list there is a loockup Field called "Products" that is looking up Products from the "Product list", and it is possible to Select multipple Products.  1-10 Products can be selected in one single Warranty registration. 

 

When i register a New Warranty item, and I select some Products(in the multiselect Field), i like to now if any of these Products already are registered in a another warranty item, and it it is - i like to display a Message. 

 

How can i check if a Product already are registrated in another Warranty item?  Any idea. ? Thank you.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
KChristoph
Advocate I
Advocate I

Hey @TrulsB

maybe this one helps you: 
I'm having a similiar function in one of my apps.
When a user is typing in another users name i'm checking whether the user is in the specific list. In my case "Master data".

I'm using this function and i could image that this one could work for your case by just adding .value to the column you want to filter.
This is the function i use on my error Textbox:


If(Or(IsBlank(UserName.Text);UserName.Text in Filter(MasterData;Department.Value="Sales").UserName);false;true)

 

So in my case if the Textbox is left Blank or the Typed in UserName is in my Masterdata Table, the error won't occure, otherwise it gets visible. 

 

I would try adding the .value to the (in my case) last UserName.


I did not test it, but maybe this one helps you 🙂 

kind regards

 

kim

View solution in original post

1 REPLY 1
KChristoph
Advocate I
Advocate I

Hey @TrulsB

maybe this one helps you: 
I'm having a similiar function in one of my apps.
When a user is typing in another users name i'm checking whether the user is in the specific list. In my case "Master data".

I'm using this function and i could image that this one could work for your case by just adding .value to the column you want to filter.
This is the function i use on my error Textbox:


If(Or(IsBlank(UserName.Text);UserName.Text in Filter(MasterData;Department.Value="Sales").UserName);false;true)

 

So in my case if the Textbox is left Blank or the Typed in UserName is in my Masterdata Table, the error won't occure, otherwise it gets visible. 

 

I would try adding the .value to the (in my case) last UserName.


I did not test it, but maybe this one helps you 🙂 

kind regards

 

kim

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,981)