I have a requirement where user can pass document and it gets uploaded to an Appian's folder. I have created a WebAPI (Document Upload) and positive scenario is working as expected.
For Negative Scenario (When we are not passing any document):
1. In the WebAPI , it is handled as "400- Document not provided" but when testing we are getting status-200 (Untitled document from web API.txt).
Q. From where we are getting this "Untitled document from web API.txt" document. Where is it handled?
Q. How to fix default handling?
Discussion posts and replies are publicly visible
Did you consider to use a!isnullorempty() instead of isnull()? This is the more modern approach and manages more of the edge cases.
Yes Stefan Helzle ,
I did try and the result was same. However I just don't see anywhere documented that if we don't send any document, Appian is going to create a document by itself and upload it.
Trying to understand whether it's a bug or it's the way it is handled. Even, I don't see where "Untitled document from web API.txt" is being handled.