Things to know

Document Generate is a linking of a lot of different areas.
The Button that Launches "Create Invoice" is an Action on the Gift Commitment object. That button passes in the ID and the Invoice ID into template.

You need to have "c__" before the variable that is coming in. The URL can be found in the OminiStudio Script -> Top right drop down -> How to Launch

OmniScript

Document Template