Generation Link
The generation link integration available to every user type.
Generation Link
The Generation Link integration uses a special URL to generate your document. This URL is created dynamically by a formula in either a Formula field or Button field. When the link or button is clicked, Documint creates a document using the template id and record id provided in the URL.
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F384378337-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fd8kT8JyAYrYZzsWpQoqK%252Fuploads%252Fg6MqWgWIS2w9sKNi1G1n%252FGeneration%2520Link%2520Overview.png%3Falt%3Dmedia%26token%3D379f2231-883e-4492-aa42-3bffc963d560&width=768&dpr=4&quality=100&sign=a21738c0&sv=1)
Add your Airtable PAT key to Documint
First, add your Airtable PAT key to connect your Documint account to Airtable. Follow this short video to get that set up.
Create the formula for your Generation Link
Now that our Airtable account is linked, we need to tell Documint which Table in Airtable to extract data from.
Head over to your base in Airtable, and then to the desired table. Here, we are working with the Orders table. Copy the URL of the table page (copying the entire URL is fine, Documint will parse only the relevant parts).
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252FwV9QaPfjHQbNJL7Bzm5V%252Fairtble%2520url.png%3Falt%3Dmedia%26token%3D670c78be-429a-4d89-a28a-ef4d7bde6c2e&width=768&dpr=4&quality=100&sign=856bf123&sv=1)
In Documint, navigate to Integrations > Airtable > Generation Link, and paste the table URL you just copied.
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252FzZqIXwpxdXJzhqo4Xvoy%252Fintegrations.png%3Falt%3Dmedia%26token%3De0cca439-9ab3-442b-b6d6-e8c15903eb40&width=768&dpr=4&quality=100&sign=f9c31142&sv=1)
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252F00XVEbMJNgdISvesq26x%252Fairtable%2520integration.png%3Falt%3Dmedia%26token%3D4cf2dd70-b17d-4b23-84fe-6066645c6d0c&width=768&dpr=4&quality=100&sign=36d63b9c&sv=1)
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252Fsx72GxOR3QZ9CxoB6ekX%252Ftable%2520url%2520copy.png%3Falt%3Dmedia%26token%3D3c5b7004-8e67-47db-bb8b-7252fe2d0eb2&width=768&dpr=4&quality=100&sign=6e13e786&sv=1)
Fill in the attachment field name. This is the field in Airtable where the auto-generated document will be located. If you don’t already have a field for this, create it in Airtable by adding a new field called ‘Documents’ with the field type ‘attachments.’
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252FdO8CCgKVwPi0cWDI4glW%252Fcreate%2520attachment%2520field.png%3Falt%3Dmedia%26token%3D05981b88-202c-45b5-b003-6fb2debb62e3&width=768&dpr=4&quality=100&sign=a400b251&sv=1)
Then, fill in the attachment field name in Documint’s integration window as ‘Documents’. Copy the entire formula at the bottom of the window, this will be used in the next step.
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252FiWy4s2kd29eBqxn2nyg0%252Fformula%2520field.png%3Falt%3Dmedia%26token%3D0a352f1a-1051-40d8-8500-00fe35a19ba8&width=768&dpr=4&quality=100&sign=3fe76d0f&sv=1)
Create Button Field
Then, in Airtable, create another button field with an ‘Open URL’ action to open this formula. Paste the formula copied in the previous step into the URL formula
field and click "Create field".
![](https://docs.documint.me/~gitbook/image?url=https%3A%2F%2F1903534506-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTY5wPd81K7B5rjyG5tjS%252Fuploads%252Fax8x5apATJ1SSGT9VjwM%252Fbutton%2520formula%2520field.png%3Falt%3Dmedia%26token%3D53c368d8-3293-430a-91e4-e3a09ce2af1b&width=768&dpr=4&quality=100&sign=86192c9&sv=1)
That’s it! Now, whenever a user clicks the button you’ve added a document will be generated for that record. If a document already exists with the data from that record and the template has not been changed, then the existing document will be displayed. This prevents generating the same document multiple times.
Last updated