Save an object that derives from FileDocument only when a file is uploaded

5
Is it possible to make the following case: Save an object that derives from filedocument only when a file is uploaded? If so, how?
asked
1 answers
6

You could check the Name attribute of FileDocument in a microflow that is connected to the before commit event of the inherited object. If it is empty there is no file uploaded otherwise there is. Let the microflow return false if you want to abort the commit else return true.

answered