Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Scheduled Job Information for a report.
Abhishek Birjepatil
<p>Hi,</p>
<p> </p>
<p>We are writing our custom emitter which sends an email.</p>
<p>The custom emitter will be scheduled to run at a particular time.</p>
<p>The scheduled job will also have a list of users who should be notified with email as an attachment.</p>
<p> </p>
<p>Is it possible to get the email ids of the users that have been scheduled to get the email in the emitter?</p>
<p> </p>
<p>Best Regards,</p>
<p>Abhishek.</p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>You've tagged this post with "iHub" so does that mean you are using iHub and if so, what version?</p>
<p> </p>
<p>The emitter will not know the scheduled job's list of users. You'll need to use an IDAPI call to get the job schedule information, and in your case the list of users' email addresses.</p>
<p> </p>
<p>You can also send email from a report. Check out this DevShare @ <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/482-mailing-birt-reports-as-body-of-email/'>http://developer.actuate.com/community/forum/index.php?/files/file/482-mailing-birt-reports-as-body-of-email/</a></p>
;
Abhishek Birjepatil
<p>Hi Clement,</p>
<p> </p>
<p>Thank you for your reply.</p>
<p>We are using iHub 16 for our reporting.</p>
<p> </p>
<p>Our requirement is to save reports on a network folder and email users a link to the file.</p>
<p>We have achieved saving the report [XLS,XML] by tweaking the emitters.</p>
<p> </p>
<p>As you mentioned, the emitter does not have information about the scheduling information, we could use the IDAPI calls to get the list of user email addresses.</p>
<p> </p>
<p>Is the following approach correct?</p>
<p>1. Get the Auth Token</p>
<p>2. Get Jobs . [<span style="background-color:rgb(247,247,247);color:rgb(64,64,64);font-family:'Courier New', Courier, mono;font-size:13.3333px;">/ihub/v1/jobs ‑H "AuthId:%RESTAuthId%"</span>]</p>
<p>3. Filter out jobs with <strong>respect to time.[</strong><span style="color:rgb(0,0,0);font-family:Menlo, Monaco, Consolas, 'Courier New', monospace;font-size:11.34px;background-color:rgb(252,246,219);">"</span><span style="margin:0px;font-size:11.34px;font-family:Menlo, Monaco, Consolas, 'Courier New', monospace;color:rgb(0,0,0);background-color:rgb(252,246,219);">nextStartTime</span><span style="color:rgb(0,0,0);font-family:Menlo, Monaco, Consolas, 'Courier New', monospace;font-size:11.34px;background-color:rgb(252,246,219);">": </span><strong>] [From JSON]</strong></p>
<p>4. Get Job ID for that particular job.</p>
<p>5. Then get the users subscribed for this job.</p>
<p> </p>
<p>Thanks.</p>
<p> </p>
<p>Best Regards,</p>
<p>Abhishek.</p>
Clement Wong
<p>REST API does not have the ability to get a list of email recipients, although an enhancement request has been file to augment the REST API functionality. IDAPI can but you’ll need use GetJobDetails to get a list of users, then get the users’s email.</p>
<p> </p>
<p>I believe you're also working with Support on this. Can you tell me more about your requirement? So far, from what I gather, you want to schedule a report with a list of user's emails, and have that report saved to a network, and then have a notification to the list of users that their report is ready? What format should their report be saved as?</p>