cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Advocate I
Advocate I

Re: Check if a record exist in a Sharepoint multivalue lookup field

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
Highlighted
Advocate I
Advocate I

Re: Check if a record exist in a Sharepoint multivalue lookup field

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,262)