Can you post the error? Perhaps your "varFileToUpload" code didn't complete before the API was called, resulting in varFileToUpload.value being undefined. Have you tried to create a code component that triggers these two processes serially?
@jg80 Thank you for the reply. The there was no error as all empty values directly post an unreadable file in s3 bucket.
As i am new to retool and no developer background. can you give me sample query first fetch value to VarFileToUpload then trigger the PostDocumentQuery?