Automatically attach document to the invoice head using customization

Greetings Dear, please i need help to upload document pdf from directory to menu or module attachment using customization not bpm, if there is a way please let me know, thank you.

regards, ahmad itani

Since it is the header, you might be able to use this
https://www.epiusers.help/t/code-from-meug-presentation-on-5-20-2020-customization-tips-and-tricks/67376
But as I discovered, this approach doesn’t work with lines/releases.
Ref Add attachment single code line - edvCurrAsm in Job entry...ugh?

Also, if you do a search of the site there are several good topics on adding attachments thru code.

You are my hero, Thank you very much you saved my life, i was looking all over the internet for this code.

Regards, Ahmad Itani