Drawloop Document Generation

Drawloop Button: Lock ‘Generate Document’ button until approval is given via an approval process

Problem:

You would like Users to generate a document ONLY after the record has gone through an approval process.

Solution:

After configuring the Salesforce approval process, create a custom button using the sample syntax below: