How do I check if an item exists in a list?
- I upload a file in the event form and then get the file name from JSON
- The file name is stored as currentFileName
- Next I query the SharePoint Online list that I plan on uploading the file to. All records are returned from the query of the SPO list/document library.
- The query is stored as colSpo
- I check if an item exists, and it never returns true, but on my test, I have a file with a file name that I am trying to upload that is already in the list. Any idea why it evaluates to true?
Here is my process and my check if item exists in collection configuration:
![](https://uploads-us-west-2.insided.com/nintex-us/attachment/7c3ff82e-e0db-4c09-974a-c93eaeb4712c.png)
![](https://uploads-us-west-2.insided.com/nintex-us/attachment/29136f43-1c00-4663-adeb-ed8d35c77d38.png)
![](https://uploads-us-west-2.insided.com/nintex-us/attachment/e2dfe6cd-ea92-498f-90ad-dadddb29674f.png)