Answers.Body: <p>You have to create 3 instances of the mail_report scheduled job.</p>
  
  <p>To do that, use <code>Add New Scheduled Job</code> button on the <code>Settings - Scheduled Jobs</code> page (<code>civicrm/admin/job?reset=1</code>)</p>
  
  <p>On the creation page, set API call to <code>Job</code> / <code>mail_report</code> (<code>api.job.mail_report</code>) and define in <code>Command parameters</code> the appropriate <code>instanceId</code> and <code>format</code> options.</p>
  
  <p><a href="https://i.sstatic.net/N26dR.png"><img src="https://i.sstatic.net/N26dR.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-06T09:29:13.683Z
Answers.Text: Fairly sure the OP did that: he says `In my scheduled jobs list, I had 3 scheduled jobs of membership report: ...When I click "Execute now", these 3 reports send email perfectly.`
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-07T18:30:55.017Z
Answers.LastActivityDate: 2015-08-07T18:30:55.017Z
Answers.UserDisplayName: samuelsov
Body: <p>I'm using CiviCRM 4.4.6 in drupal 7.</p>
  
  <p>In my scheduled jobs list, I had 3 scheduled jobs of membership report: report A, report B, and report C. These reports will send out email with different csv attachment.  </p>
  
  <p>When I click "Execute now", these 3 reports send email perfectly.</p>
  
  <p>I'm using Elysia Cron to control both drupal and CiviCRM cron, and use external crontab to run cron in my control panel.</p>
  
  <p>CiviCRM cron runs, but it only trigger report A. Both report B and C is missing.</p>
  
  <p>My question is:  </p>
  
  <p>Does CiviCRM cron only allow one mail_report scheduled job to be run? </p>
  
  <p>If so, does it mean that I have to put in multiple report IDs (instanceId) in one mail_report scheduled job? </p>
  
  <p>I tested it, and only one instanceId is allowed in one mail_report scheduled job.  </p>
  
  <p>Is there any way I can send out multiple email reports when running cron?</p>
  
Tags: <civireport><cron-job>
Title: civiCRM Cron only run one mail_report scheduled jobs?
ThreadText: # civiCRM Cron only run one mail_report scheduled jobs?
  
  (Asked by: username_0 on 2015-07-14)
  
  I'm using CiviCRM 4.4.6 in drupal 7.
  
  In my scheduled jobs list, I had 3 scheduled jobs of membership report: report A, report B, and report C. These reports will send out email with different csv attachment.
  
  When I click "Execute now", these 3 reports send email perfectly.
  
  I'm using Elysia Cron to control both drupal and CiviCRM cron, and use external crontab to run cron in my control panel.
  
  CiviCRM cron runs, but it only trigger report A. Both report B and C is missing.
  
  My question is:
  
  Does CiviCRM cron only allow one mail\_report scheduled job to be run?
  
  If so, does it mean that I have to put in multiple report IDs (instanceId) in one mail\_report scheduled job?
  
  I tested it, and only one instanceId is allowed in one mail\_report scheduled job.
  
  Is there any way I can send out multiple email reports when running cron?
  
  **Tags:** civireport, cron-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-07. Score: 8
  
  You have to create 3 instances of the mail\_report scheduled job.
  
  To do that, use `Add New Scheduled Job` button on the `Settings - Scheduled Jobs` page (`civicrm/admin/job?reset=1`)
  
  On the creation page, set API call to `Job` / `mail_report` (`api.job.mail_report`) and define in `Command parameters` the appropriate `instanceId` and `format` options.
  
  [![enter image description here](https://i.sstatic.net/N26dR.png)](https://i.sstatic.net/N26dR.png)
  
  > **Comments:**
  > **username_2**: Fairly sure the OP did that: he says `In my scheduled jobs list, I had 3 scheduled jobs of membership report: ...When I click "Execute now", these 3 reports send email perfectly.`  
  
  ---
  
  