1)An application should have a lookup for its parent application on the application table (on the same table).
2)Add Ribbon Button On Application. The document is visible only if the parent application contains data (when a user clicks on the button titled /bring document history/ and on lookup selects any record which has already been created, then copies the document and attaches it to the current record(only copy the document of the filer Property + Technical Audit this two.).
3)Call Power Automate -- > add documents from the parent application on click
4)Show form Notification /Documents will be moved in the background. Please check after some time/.
5)Environment Variable to store Power Automate URL
(Note: I have a flow which is to create a folder so i want when user selects the lookup which is application is created the copy that document to current on click of button)