Hello, I am building an app that lets users send photos of credit card receipts to a sharepoint document library. Everything works except the fact that if a user puts in a filename that is already on the document library the photo will just overwrite the existing one which will be an issue.
I have a string of code on the send button and I want to have it so that it updates a context of "mismatch" to "true" which causes a popup to load that lets the user know that file name is already taken.
Here is the code that I have so far and here is a photo from my test library. (PS the data is just test so that is why all the file names are gibberish )
The blue underline tells me that the data I am trying to compare are different values. Is a file name stored in a different value than text in sharepoint?
Below is the document library.
Any Help would be greatly appreciated!!!
Solved! Go to Solution.
The blue line is a Delegation warning as the Name field in a Library is not Delegable.
One workaround is to store this in a text field as well when the document is filed, which will then be a Delegable query.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
The blue line is a Delegation warning as the Name field in a Library is not Delegable.
One workaround is to store this in a text field as well when the document is filed, which will then be a Delegable query.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
183 | |
105 | |
89 | |
45 | |
43 |
User | Count |
---|---|
229 | |
106 | |
105 | |
67 | |
67 |