The SkipDownload parameter stops the generated document from downloading to the user's computer. Instead, Docs Made Easy processes the file in the background and handles it according to the Background Mode (bgm) value, for example by saving it to Files, Attachments or Chatter.

Syntax

As an Other Parameter on the solution's Assign Behaviors page:

Parameter Name:  SkipDownload
Parameter Value: 1

In the solution button's URL:

&SkipDownload=1

Values

ValueEffect
1The document isn't downloaded. It is handled according to the bgm value, which must also be set.

Where to add it

  1. On your solution's Assign Behaviors page, click Other Parameter in the sidebar, then click Add Other Parameter.

  2. Enter SkipDownload in Parameter Name and 1 in Parameter Value, then click Save.

    Edit Other Parameter window with SkipDownload as the name and 1 as the value

Example

  • Input: a user clicks the solution's button on an opportunity.
  • Settings: Background Mode set to File (bgm=1), plus the Other Parameter SkipDownload=1 (the button URL carries &bgm=1&SkipDownload=1).
  • Output: the document is saved to the opportunity's Files and nothing downloads to the user's computer.

Works in

SkipDownload is set on the solution, not written in a template. It works together with a bgm value.

Combine with

  • Background Mode (bgm): required. For example, bgm=1 with SkipDownload=1 saves to Files with no download.
  • redirecttourl: sends the user back to a page, such as the record, after the file is saved.

Common errors

  • Unpredictable result, or the file isn't saved anywhere. Set a valid bgm value that saves the file, such as bgm=1. See Where generated documents are saved.
  • The file isn't saved to the record, or Salesforce reports insufficient access. The user needs access to the record and permission to add files to it. See DME-SF-004.