Help

Documint Integration

Topic Labels: Automations
50 1
cancel
Showing results for 
Search instead for 
Did you mean: 

I have setup a very basic documint integration / automation but when running the test it is returning an error:

ERROR

Error: Missing fields in URL: record_id

at main on line 15

I am very new to automations so don’t know where i am going wrong. the following is the script:

const { record_id } = input.config()

const params = {
record_id,
table_id:‘tbld0FXPEY9Ou5LVr’,
base_id: base.id,
attachment_field_name: ‘Deal Memo’,
overwrite_attachments: true
}

const qs = Object.entries(params).map(p=>p.join(‘=’)).join(‘&’)
const url = https://api.documint.me/1/templates/633304e261f4ab000463d2bc/content/airtable?${qs}
const response = await fetch(url, { method: “POST” })
const data = await response.json()
if(response.status !== 200) throw new Error(data.message)

Any help would be appreciated.

Thanks

1 Reply 1

You may get an answer here, but be sure to reach out to DocuMint support with your question as well.