You can send a downloadable link for downloading multiple documents of multiple agreements through email, to selected contacts or to a user group without downloading the agreement documents and sending them through email individually.

  1. Go to Setup > Develop > Apex Classes > Schedule Apex.

  2. Enter the following information to configure the job parameters.

    1. Job Name: Enter a job name.

    2. Apex Class: Click the icon. Enter AgreementDocumentEmailCleanupJob and select AgreementDocumentEmailCleanupJob. 

    3. Frequency: Select Weekly or Monthly based on your requirement.

      1. If you select Weekly, you must specify one or more days of the week the job needs to run (such as Monday and Wednesday).
      2. If you select Monthly, you must specify the date the or the day (such as the second Saturday of every month)
    4. Start: Select a start date.
    5. End: Select an end date.
    6. Preferred Time: Select a preferred time for the dropdown.
  3. Click Save.

  1. Go to the Admin tab (click + and choose the Admin tab.) Click Go to view all Admin objects (your list can vary depending on which objects are already created).
  2. Click New Admin. This displays the Admin Edit page.
  3. Enter the name as APTS_DownloadableLinkExpiration.
  4. Enter the value according to your requirement. The value field corresponds to the number of days to expire the downloadable link.
  5. Click Save.