BUG 12768 Trigger after InputDocument step executes before input document is saved SOLVED

- Trigger after InputDocument step executes before input document is saved
- Adjustment in the app_data of input documents.