Workflow-Attaching pdf from Custom Concurrent Request to email notification

Hi,
I was wondering if anyone has done something similar before and maybe have any suggestions?
I am trying to attach a .pdf file that is generated by a custom concurrent request report to an email notification.
The .pdf is generated correctly and I can access the file but I’m having problems trying to attach it to the email notification
I have tried to use Wf_Engine.SetItemAttrText and Wf_Engine.SetItemAttrDocument but are unable to get it to attach the file.
Does anyone know where I can find an example how to use either of the above API's? and a detailed explanation of them?
Should the attachment always be in FND_LOBS to be picked up or can it be picked up from the file system?
What should the Workflow - Notification - Performer Value be set to, that is referencing the message with the Document Attribute?
I'm unable to find a detailed explanation of how this can be done in the Oracle Workflow Developers Guide Release 2.6.4.
Any reference material or guidance as to where an example can be found will be greatly appreciated
Thanks
Coenraad

The PLSQL procedure that generates the PL/SQL BLOB documents must follow standard API formats and a sample is shown below.
procedure GENERATE_PDF(document_id in varchar2,
content_type in varchar2,
document in out nocopy blob,
document_type in out nocopy varchar2)
is
l_docid pls_integer;
l_filename varchar2(100);
l_errmsg varchar2(100) := 'The Document is not found in the Database';
l_bdoc blob;
l_data_type varchar2(100);
begin
l_docid := to_number(document_id);
dbms_lob.CreateTemporary(l_bdoc, FALSE, DBMS_LOB.Session);
SELECT file_data
into l_bdoc
FROM fnd_lobs
WHERE file_id= l_docid;
dbms_lob.Copy(document, l_bdoc, dbms_lob.getLength(l_bdoc));
exception
when others then
dbms_lob.WriteAppend(document, length(l_errmsg), l_errmsg);
wf_core.context('SA_MLRTST','GENERATE_PDF',document_id);
raise;
end GENERATE_PDF;
You can use FND_LOBS or any other table to get the content. The content must be stored into the corresponding table before using it.
The following is the PLSQL script for generating BINARY data for a file
declare
l_bfile BFILE;
l_temp_blob blob;
l_docid number :='1000';
l_ctype varchar2(300) :='application/pdf';
l_filename varchar2(50) :='testfile.pdf';
begin
dbms_lob.createtemporary(l_temp_blob, true, dbms_lob.session);
l_bfile := BFILENAME('OEX_INPATH',l_filename);
dbms_lob.fileopen(l_bfile, dbms_lob.file_readonly);
dbms_lob.loadfromfile(l_temp_blob, l_bfile, dbms_lob.getlength(l_bfile));
INSERT INTO fnd_lobs(file_id, file_name, file_content_type,file_data,file_format)
VALUES( l_docid,l_filename,l_ctype,l_temp_blob,'binary');
end;
OEX_INPATH - this is a database directory, you need to copy the pdf file which you want to convert to BINARY to the location which this directory points
l_filename - name of the file which need to be converted to BINARY format

Similar Messages

  • Is there a way to send output from a Concurrent Request via email in r12?

    We are looking for a way to send emails out from the Concurrent Request output in r12.
    Discussions internally have involved using Unix procedures/commands but we were looking for an EBS integrated solution if one is available.
    I did find document 811716.1which seems to provide a solution, but the patches and information given are for 11i (we are r12). If this functionality is available in r12, is there any further documentation we can use?
    Any assistance would be appreciated.
    Thanks.
    Kevin
    Edited by: user3065048 on Jul 21, 2009 2:52 PM

    Duplicate post.
    Is there a way to send output from a Concurrent Request via email in r12?
    Re: Is there a way to send output from a Concurrent Request via email in r12?

  • Attach .pdf and .doc files to Reply emails.

    I am desperately trying to figure out how to attach .pdf and .doc files to Reply emails in the Mail app. I have downloaded GoodReader, but when I go into "Manage Files" and choose "Open in...", Mail is not one of the apps listed for me to choose from (only Quickoffice and iBooks are listed, that's it). My Gmail account is pushed to the Mail app, if that's relevant at all.
    I'm hoping to be able to attach documents to Reply emails in the Mail app, but if I have to do it using my web-based email, that's better than nothing. I just really need to be able to attach them to Replies, and not compose a new email from scratch.
    I'd REALLY appreciate any help with this!
    Thanks.

    I thought I might be able to figure out a clever work-around by using cut and paste from a new message but this did not work as expected. I have been using the MobileMe iDisk app to store pdf files and then just mailing out the links.  I believe my cut and paste method would have worked with this, however I've got about a year now to figure out another way to do this if it is not included in Apple's new cloud service. This has actually been a better as I need to worry less about file size and don't need to have the files stored on the device.
    You may want to look into what on-line file storage solutions are out there and if they have the ability to send links to files to colleagues, possibly with password protection.

  • How to attach photo (from Iphoto) to i.e. email or facebook??  cannot access Iphoto library...

    How to attach photo (from Iphoto) to i.e. email or facebook??  cannot access Iphoto library...

    Hi...
    Open Mac Mail. From the menu bar top of your screen click Mail > Preferences then select the General tab.
    Select which email address you want to use to share photos on Facebook or email from the pop up menu next to:  Default email reader:
    Launch iPhoto. Select the photo then from the iPhoto menu bar click Share > Email or Share > Facebook.
    edited by:  cs

  • Is it possible to Call ODI Scenario from eBS Concurrent request

    Hi Experts
    We have a concurrent request running on oracle eBS system. Is it possible to Invoke the ODI Scenario (on a different server) by submitting a concurrent request. Mostly the concurrent program will be a PL/SQL
    Thanks in advance.

    hey,
    yeah its possible..
    Check this.
    /people/vanita.thareja2/blog/2006/05/23/bpm-sending-message-asynchronously-and-getting-the-response-from-synchronous-system-using-abap-proxies
    These replies too..
    Proxy in BPM
    BPM file to ABAP proxy
    Thanks,
    Vijaya.
    Edited by: Vijaya Lakshmi Palla on Jun 4, 2008 5:32 AM

  • How to attach a PDF from Ibooks to a current email - help  !

    Hello,
    I am using an Ipad mini and can't figure something out.
    I have a long email and would like to attach a PDF file to my latest response. The PDF is currently in my IBooks.
    I know I can send the PDF in a new/clean email, but the point is that I would like to be able to attach it to the current email. I can insert a photo or a video but there doesnt seem to be a way to insert a PDF file.
    I tried to open the PDF up in a new mail, cut it, then paste it into the existing email, but even that doesn't seem to work - I checked my sent box and there was no attachment on the mail when I tried it that way. The only way around the problem I can think of is to create the new email with the attachment, save it as a draft, go back into the original mail, copy it, go back into drafts and paste the existing text around my attachment - but this is a ridiculous and time-consuming process and not really practical.
    Can anyone kindly advise? I think there will be an easy solution, but I just dont see it yet -
    Thanks, M

    There is no way to do what you are trying to do. You have to send the email and the pdf from iBooks.
    Open the PDF in iBooks then tap the arrow icon in the upper left corner and select Email. Copy and paste the entire lengthy email into this new email in iBooks and send it that way, its clunky, but it is really the only way to accomplish what you want to accomplish using an iPad and the mail app. You can cancel the email in the iBooks app and it will allow you to save the draft and you can go back to using the mail app to send it, or just send the email from iBooks.
    The mail app will only allow you to insert photos and videos as attachments.

  • How do I attach a 2nd PDF from iBook to the same email

    After I initiate an email from iBooks and attach a PDF document how do I attach a 2nd PDF from iBook to the same email

    You can only email one pdf at a time.

  • How do I attach photos from PSE 11 Organizer to email without my address verfication?

    How do I attach photos from PSE Organizer to email without my address verification?

    mytaxsite.co.uk wrote:
    Also, Adobe was recently hacked and some of us can't login at all on these forums.  I can only post here using an email.
    The following may help you to resolve that:
    http://helpx.adobe.com/x-productkb/policy-pricing/customer-alert.html
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • I have v6.0.2 x86 en-US installed on a laptop running Vista, and a desktop running W7. After the installation, I have been unable to attach anything from a file onto an email. If I switch to IE, it works just fine. HELP!

    I disabled all of the plug-ins and anti-virus program but it still won't attach files (BMP, JPG, etc) to any email.

    No problems here with uploading an attachment to Yahoo when composing a new mail.<br />
    Make sure that you do not block JavaScript
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Did you also check the firewall?
    Which security software (firewall, anti-virus) do you have?
    *https://support.mozilla.com/kb/Firewalls

  • AP Approval Request Information email notification doesnot work

    I have setup AP approval with AME ( oracle ver 11.5.10.2 and AME Ver B). The Approve and reject actions on the email notification work fine but when approver clicks on "Request information" then the reply screen is displayed as below:
    Request more information from: 'Enter Requestee role here'
    Question: 'Enter your question here'
    NID[2920949/1421900579@WFMAIL][3]
    workflow for APINV is not getting the value for 'Enter Requestee role here' automatically . Is this standard functionality? I have setup GL journal approval and requistion approval but i didnot get into this issue .
    Please also advise why APinv is getting Role instead of user. the email notification is getting "accouts payable" instead of the person who created the invocie. the TO is correct as it shows the approver user name. i.e
    the notification shows:
    From: To
    Accounts Payable Steve,Bush
    Please Help.
    Thanks,
    Steve

    guys - if you are 11.5.10 and implementing AP approval then the request information action does not work..i.e approver cannot just click on request infromation and ask any question to the sender .....oracle has ER for this....do not know why they have to remove this....
    --Steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is there a way to attach files linked in FormCentral form to email notifications?

    As part of my FormCentral form design, the end User is required to link a file (copy of Purchase Order). Is there a way of forcing this file to attach to the email notifications? I can obviously see the file attachments in the backend and download from there, but it would be preferable if I could deliver with the email notification to circumvent other processes.
    Any suggetsions?

    Sorry this is not possible to have the files attached to the email notification.
    Gen

  • Using aperture from two different accounts and email notifications

    Hi
    I have two issues. The first is that I have setup up two accounts on my iMac but I can't get both to use the same library. Both accounts have the exact same permissions and access.
    The second is that I get emails from this forum on every topic/notification and I want to stop it. The notification emails have instructions on how to do this but when I go to "My Subscriptions" there aren't any to delete.

    Kinda but you'll need to sync manually. For more information...
    http://docs.info.apple.com/article.html?artnum=61675

  • Service Oriented workflow with items from customer

    Dear Friends,
    In SAP Business One how to handle the Service oriented workflow, which contains items from the customers? E.g. Electronic items repairing.

    Hi,
    Step1:Create a item master in the name of service,decide whether it has to be maintained as inventory item or not from the companys accounting person.
    Step2:You can use AR invoice(Item type) where you can include the items used for repairing along with the service item created in the above step1.
    Maintaining Inventory of the items (for repairing) received from the customer as well as the items required for the repairing jobs
    Step3:As you have mentioned that the you are maintaining the item received from the customer,confirm with companys accounting person whether it also has to be maintained as inventory item or not.
    Step4:You can use goods receipt for getting the items from the customer
    Note:Its depends upon your requirement whether to use sales bom or not as suggested by one of the forum member

  • Mail freezes when attaching PDF from Acrobate

    I have a new issue with mail, when I am in Acrobat and attempt to Attach to email, Mail sometimes gives me an error (don't have it exactly, sorry) and then I get the spinning wheel and have to force quit. Does this mean corrupt preferences?

    Mail sometimes gives me an error (don't have it exactly, sorry)
    The exact text of the error message could very well be the key to unraveling this mystery.
    Does this mean corrupt preferences?
    No, we can't assume anything at this point without more information. How big are these PDF files; what version of Mail are you running? Have you checked Software Update to see if you need the Mail Update released yesterday? If not, do that first.
    You should also replicate this problem and write down the exact text of the error message and include it in your reply along with the other information. In addition, see if you can replicate this problem in a new user account; if you can, then the issue is system-wide.
    Mulder

  • Send message windows doesn't close after sending attached PDF from Acrobat

    I have several forms that I have created in Acrobat 9 Pro. These forms have a button set to submit to an email address. After filling out the form, and clicking on the submit button some, but not all, of users with Outlook 2007 are having a problem with the send message window not closing after sending the email.
    When they click the button the email is created with the form as an attachment. When they click the send button in the send message window the message goes into the outbox, and then gets sent no problems. But the send message window never closes after sending the message. So my users think the message never got sent.
    The computers that I am seeing this on all run XP, have Outlook 2007, and use Acrobat Standard 8. On some computers it works just fine, and on others it has the problem. It must be a setting somewhere but I can not figure it out.
    Closing the window by clicking on the "X" is no problem, but many of my users are pretty new to computers know very little about them. So something like this causes them a lot of problems.
    Any suggestions?
    Trudy

    My apologies, when I said "instance" I meant window.
    I also just realized the new window and then closing behavior only happens when the iTunes link clicked is in an email in Mail (presumably, this would also happen in other desktop email clients). When an iTunes link in Safari is clicked, the "iTunes loading" white page appears for a moment and then Safari navigates back to the page with the link. However, that isn't working properly, either. The white page continues to "load" indefinitely and never returns to the previous page.
    Here is a link:
    http://www.imogenheap.com/buy/

Maybe you are looking for

  • Space occupied by clustered index Vs non-clustered index

    I am trying to understand the indexes. Does clustered index occupy more space than a non-clustered index because it carries the information about rest of the other columns also. Could you guys please help me understand this. Thanks in advance. svk

  • Upgrading Hardware

    Hi, I am looking to upgrade from an old '06 Macbook to a new Macbook Pro. What I like about my Macbook now is that I can upgrade the RAM and hard drive myself. Thus when I bought it, I chose the cheapest RAM and hard drive, and then upgraded for abou

  • I accidentally deleted the passwords saved in safari preferences

    I accidentally deleted the passwords saved in my safari preferences and I cannot remember them to manually input them in again. They were for my email and facebook and dropbox. How can i recover these passwords that were saved on safari preferences s

  • How to watch videos online

    Please help me, i can't watch videos online with my n8. It says 'cannot connect to server'what should i do? Please help me.

  • Add a KeyListener to JTextField

    Hello: I got some questions to ask you. 1) How to add a KeyListener to a JTextField, and I'd like to known how to use System.out.println to print out the values which are from keyBoard? 2) How to put the JTextField in the middle of the JFrame? import