I have developed an addon which adds scanned images to the invoice. If an invoice is added I have no problem, if it's in adding mode I can't allocate it because I don't have a DocEntry value which I need to pass.
Is it possible to add an attachment to a sales document in SDK which is in adding mode?