How to automatically send report after it is created?

Hello,
I am beginner and I would appreciate if someone could tell me general information.
I found this tutorial how to save and access report.
Storing and Accessing Reports in the Database
In that tutorial report is saved onclick.
Is there a way to automatically email report everytime report is generate or I should first save it (PDF, CSV,..) with SQL script and then email it?
I also found that in Interactive report there is page process that can send e-mails. Is it possible that page process send e-mail with report or report should be also saved before sending?
The reason for this is that we want to have a history of created reports.
Thank you in advance.

874887 wrote:
The reason for this is that we want to have a history of created reports.
Save report, then email it.
I usually call COMMIT between the two steps.
Use the APEX_MAIL package to send out an e-mail with an attachment.
You should be able to modify the PL/SQL to do it all in one step
declare
  l_report blob;
-- Added this for APEX_MAIL
l_mail_id NUMBER;
begin
  l_report := apex_util.get_print_document (
  p_application_id => :APP_ID,
  p_report_query_name => 'blobquery',
  p_report_layout_name => 'blobquery',
  p_report_layout_type => 'rtf',
  p_document_format => 'pdf'
  insert into report_archive (
  filename,
  mimetype,
  report,
  created_date,
  created_by
  ) values (
  'BLOB Query Search Results ('||to_char(sysdate,'DDMonYYYY')||')',
  'application/pdf',
  l_report,
  sysdate,
  :USER
-- COMMIT the insert so you don't e-mail out a report
-- that was never saved
commit;
-- create e-mail here
l_mail_id := APEX_MAIL.send( ... ); -- see document for usage
APEX_MAIL.ADD_ATTACHMENT( .. ); -- see document for usage
end;
MK

Similar Messages

  • I activated the checkbox "Automatically send report to apple" where can I disable it?

    I activated the checkbox "Automatically send report to apple" where can I disable it?

    I could solved it too on snow leopard 10.6.8. Leave you a copy.
    Re: Reactivate Console's "Automatically Send Anonymous Diagnostic and Usage Data to Apple" 
    07-mar-2012 15:10 (in response to red_menace)
    Thanks, red_menace, you were right; after an itunes forced exit, I was asked to create an inform, then to send it to apple and finally to "Automatically Send Anonymous Diagnostic and Usage Data to Apple". I accepted and cheked "Don't ask me again".
    Now the Console Preferences check box is ennabled and checked again.
    Thank you all for your help.

  • How can we send workitem after Po approval decision has been taken by appro

    Hi.
    How can we send workitem after Po approved decision has been taken by approver1 to approver2 in the same flow?
    Regards,
    Chow.

    Some kind requests from a user who is of a different opinion:
    Please create one thread for each different question, with a precise thread subject. It will make it easier to search for previously answers to the question someone has, and it will help keep each thread short.
    Please do not introduce new questions on an entirely different topic in an existing thread.
    Please always check if your answer has been answered already before you start a new thread.
    Please do not ask the same question twice just because you did not receive an answer when you asked it first. Post a follow-up to your first thread if you want to make everyone aware that you are still looking for help to solve your problem.
    Please mark questions as answered when you either have reiceived the answer, or solved the problem. It is also nice if you leave a little comment about how the problem was solved.
    I guess that was all for today...

  • Send automaticly a report after generation

    HI,
    how to send a report (the result of tcode MB52 for exemple) automaticly by mail after generation by job.
    thx

    Hi Anda,
                 You can take the help of a basis Person, Via T-code SM36, create a variant in MB52, and keep on running the same variant and save it,
    create the recipient group for whoom you want to send the, copy the Program name for MB52 (RM07MLBS), and goto SM36, give in the program and recipient list.
    then goto SM37, run the Back ground job,
    BUt it is not as easy as Explained., But you can always take help from the BASIS guy.
    Hope it helps you.
    Regards,
    YK

  • How to automate the reports ?

    Post Author: Rajasopa
    CA Forum: Desktop Intelligence Reporting
    Hi everybody ,
    I need to know how to schedule the reports automatically? I have alreadu build reports .please help me out .
    Raj
    CGI SYSTEMS INC.

    Post Author: Miss_Purple
    CA Forum: Desktop Intelligence Reporting
    Hi Raj,
    On our set-up to schedule reports you need access to the Central Management Console of BO - I don't know how you get this though, I was sent a link to it by my line manager.
    Once you are in the Central Management Console, you can browse the reports in your repository, and just click on the 'schedule' tab for each one and select the options you want.
    Hope that helps...
    Miss P.

  • How to automatically send the mail without popping for send

    Hi,
    I am providing proper values in system parameters of report6. viz.
    Desformat=pdf
    Destype=mail
    mode=bitmap
    desname=Valid email id
    I am using MS MAPI (Microsoft Outlook)
    When I run the report, I get the composed mail with the pdf attachment. When I press the SEND button of the composed mail, I shall be able to send the mail.
    Is there a way to SEND the mail automatically through reports?
    Regds
    Prakash H L

    hi ,
    Try running your report in batch mode, provide batch=yes on the command line for your report. This will suppress any user interaction and will mail the report without the need for the user to click on the send button of the mail composer.
    Regards
    Oracle Reports Team.

  • Can I run automatically another report after a runned report?

    Hi.
    Can I run automatically in another report after a runned report?
    Like: I open a report, I click on Run/View and then the pdf is on screen BI Publisher runs another report (on screen)?
    Thank you, bye
    R.
    Edited by: user12003776 on May 18, 2011 5:29 PM

    Ok,
    I've to do a datatemplate with 2 queries and a new page in the existing template ?

  • HT4515 I have a 3GS and would like to know how to automatically send a call to voicemail on my other phone I can just reject answer and it would go to voicemail how do I do it on this phone

    I have a 3GS and would like to know how to auomatically send a call to voicemail when it starts ringing in my old phone I could put them on the reject list but cannot located that here is it possible?  If so how?

    Press the on/off button once to silence the call and twice to reject it and send to voicemail.

  • HOW TO: Change page size after page is created?

    Is there a way to change the size of a page after the page has been created? In the documentation, the only way I have seen to set the page size is in a "with" statement right after creating the document. I have need to change the size of the document after a document has already been created. Any ideas?

    Yep, that's how I am doing it. I just wanted to make sure that I was doing it correctly. I need to keep debugging then and figure out what the real problem is. I am new to all of this (obviously) and I just needed to make sure I had the idea correct. I didn't mean to use document and page interchangeably, I understand that you can't have different size pages in the same document.
    Thank you for your help.
    [FYI]I created a class that creates a document with most of the document settings that I use (e.g. a standard number of pages, non-facing pages, units in inches, etc.) but I don't specify a page size, that's something that varies between documents, so I figured I could just apply that after I have created the page. The problem is, when I try to create multiple documents it doesn't work. The script will create the first document using the default page size settings and I can't get it to change the page size, but then the next document will be created using the page size I tried to apply from the previous document that the script created. I am sure this is totally a coding error somewhere else. I will try to track it down. Just when I think I have this stuff figured out . . .

  • How do you send an attachment via email created on a mac

    how do you send an attachment via email to another recipient who does not have a mac?

    As long as you send it in a recognizable format such as a .jpeg (or .jpg) used for most photos/images or .pdf used for a lot of word processing docs, there is no problem. Also, while in the Mail window, choose "send Windows compatible". It's not who or what you create it on, it is the format you send it in.

  • How to automatic complete workflow after 3 weeks ago ?

    Hi all,
    I have one problem about workflow in SAP.
    I have the workflow that have one agent to assigned.
    How can I setup workflow to automatic complete if agent don't process task within 3 weeks ?

    Hi,
    Check whether the background job SWWDHEX is configured and its running for each 3 minutes.
    Also if you set the deadline as 3 minutes's, then you have to wait for some more 3 mins. Once the deadline reached the background job will execute the step with in three minutes. Check transaction SWWA. Here you can set the time interval for deadline job SWWDHEX.
    Then in the Activity step once the deadline is set, then select the modeled deadline in the action field. So that it will create a new
    branch in the wok flow template.
    For testing purpose, Just create a send mail step in the new branch and wait for ten minutes. Deadline will be reached and the mail will send to the inbox.
    Thanks.

  • How to automatically maximize report output on HTML page

    Hi,
    I am using Oracle Database 10g and Oracle Developer Suite 10.1.2
    on Windows XP.
    I am using Run_Report_Object() and Web.Show_Document() respectively to call the Report from Oracle Form.
    Well, it showed normally.
    However, the Window is not maximized automatically when showed.
    I had to maximize it manually.
    I would like to know, how can I maximize the report output which is showed in new Window on HTML format automatically?
    Is there anyway to do so?
    BTW, I also use the Report to call another Report by providing the hyperlink using SRW.Set_Hyperlink
    Can I do the same, maximize the Window?
    Many thanks,
    Buntoro

    hi,
    u'll have to set the second argument in your function to '_blank'
    i.e, web.show_document(url,'_blank');

  • How to get a report after blocks has been removed in MRBR

    Hi,
    After removing  the blocks manually in MRBR. We can see the invoices with X mark which had blocked for (price, qty or date) block in MRBR report.
    But when we remove the block automatically (i.e release block automatically), if we again go and check in MRBR their won't be any blocks (which shows "X" mark) in MRBR report.
    Can anyone suggest me is there any report which shows the invoices which got automatically released and the blocked reason (price /  qty / date block).
    Thank you,
    Vinay

    I'm 99.9% sure there is no such report or even possibility.
    Regards,
    Nick

  • How do you send report to a file & a printer at the same time?

    I need to run a 10g form that will get the filename that the user wants to save the report as and also a printer that the user would like to print the report to at the same time. I've tried using the distribution option with an xml destination file, but I keep getting errors when try to use variables in the xml file. Anyone know how to do this?

    I'm not sure which variables with which you're having troubles, but the following distribution file format accomplishes what you requested here (ver 9.0.4.2 running on Windows 2003-YMMV), provided that the Report Server can see and has rights to:
    1) The specified printer.
    2) The specified destination directory.
    <destinations>
    <printer id="p1" name="\\myprintqueue\my_valid_priner_name">
    <include src="report"/>
    </printer>
    <file id="f1" name="\\MyFileserver\ASubdir\DestSubdir\MyFilename.PDF" format="pdf">
    <include src="report"/>
    </file>
    </destinations>
    Paul Sturgis

  • How to automate Expense Report Payments

    Hello to all,
    Would like to find out more information on automating expense report payments. Basically we like to have expense report payments directly deposited into employee bank account.
    Currently we have payroll directly deposited into employee bank accounts. Can we utilize the same data for expense. If so, does any have any setup documents or can share ML notes on this topic.
    Thanks

    If you are running Oracle HRMS, this should feed directly (configuration within oracle AP), if not will need to create the person manually. Bank accounts will not feed through automatically. We needed a batch job to run an update. To accomodate for ongoing, a manual workflow was put into place, to ensure data was consisitent. Also a notification in i-expenses to the employee to ask the to notify AP if bank accounts have changed recently. This could obviously be automated.

Maybe you are looking for

  • MathType Square root problem

    Hello, I work with MathType on mac (indesign CS6), this is fine except that the square root sign is not quite the same on Mac as on PC. Are there any settings that can change this so that it becomes equally. top line of the character becomes higher o

  • ITunes does not delete songs  -- Send song files to the Trash for deletion

    27May2012 Apple Support: I have Itunes on an external drive.  I put the (song) files on another external drive for storage becasue the itunes drive is full. After copying the files, I tried to delete the songs.  I had the option to keep the files or

  • Can you get an apple product by giving an apple product?

    What is the value of an iPhone 4 (locked with orange, 16 GB), an iPhone 4s (color changed to blue and the glass is broken, 16 GB) and an iPod 1st gen. (8GB) What if I bring them to the store and give same money with it in exchange for an iPhone 5 (16

  • Page footer (Fusszeile) with Mac keynote (Deutsch)?

    I want to build a page footer (Fusszeile) with Mac keynote (Deutsch)

  • Cannot click Update Vault path

    I want to relocate my vault to another HD. I follow the directs (ejecting HD tghat houses vault, disconnecting computer, reconnecting computer, selecting the vault), but "update vault path" is grayed out. Running OS 10.8.5, Aperture 3.4.5