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

Comparing sp List and collection

Hi All,

 

We have a sharepoint list and collection, i need to compare the both and need to filter the data. if a particular record exists in sharepoint list with filter condition, i need to exclude those record. i have written the below code which is not working as expected. 

 

Can someone help me on the below code.

 

ForAll(colEmails,
Collect(Collection1,Filter(MainCollection,Email in Collection1233.MailID &&

Not(Text(StartDateTime,"[$-en-US]m/dd/yyyy") in SPLIST.MStartDate) &&

Not(Text(StartDateTime,"[$-en-US]h:mm AM/PM") in SPLIST.StartTime)))
);

 

- If i add NOT condition it was not working. I have tried with '<>' and '!' instead of NOT but no luck.

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

Hi @BKGOUD 

You can use like below code, Hope it will work for you.

ForAll(colEmails,
Collect(Collection1,Filter(MainCollection,Email in Collection1233.MailID &&

Not(DateValue(Text(StartDateTime,"[$-en-US]m/dd/yyyy")) in SPLIST.MStartDate) &&

Not(Text(StartDateTime,"[$-en-US]h:mm AM/PM") in SPLIST.StartTime)))
);

Thanks

Highlighted

Hi @VijayTailor ,

 

Thanks for helping me. In my code the first condition returns true and others conditions are false. Will it filter the data else how it works.

Highlighted

Hi , if possible plz provide the more details regarding your Issue.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,596)