Delete/display/copy attachments in the workflow

Hello,
I'm creating a workflow which contains a pdf attachment. This attachment is created or inserted with the start form.
During the workflow I want to delete the attachment and include a new one. Another thing I want to do is attach the pdf document to an other  BOR object.
The thing what I have done so far but didn't work:
I created an activity which moves the attachment to a method so I could work or change the attachment. I know their is an automatic binding with the container '_Attach_Objects' but I couldn't see the contents in the executed method when I read it out on the way below
Here a part of the method to get the content of the '_Attach_Object' container.
BEGIN_METHOD DISPLAY_ATTACHMENT CHANGING CONTAINER.
DATA attach TYPE SWC_OBJECT OCCURS 0,
            ZSWC_OBJECT TYPE TABLE OF SWC_OBJECT.
swc_get_table container '_ATTACH_OBJECTS' attach.
SWC_GET_TABLE CONTAINER 'ZSWC_OBJECT' ZSWC_OBJECT.
BREAK-POINT.
END_METHOD.
With the binding SWC_GET_TABLE I don't get the appropriate values in the container.
How do I get the contents of the container in the method so I could delete the attachment on a nice way or to copy the content to a new BOR Object?
Kind regards,
Richard Meijn

The reason why I want to change/delete the attachment is that I create a workflow for a signature registration.  The signature is on the pdf form. The signature is checked by employees and if the signature is not correct the workflow goes back to requestor to give in a new pdf document.
The first pdf document has to be removed from the workflow and from the document storage. If the signature is correct I want to copy the attached document to a business object with a GOS  object.
Kind regards,
Richard Meijn

Similar Messages

  • Is it possible to delete attachments from the workflow?

    Hi,
    Í have this workflow where people have to create attachments to a workflow. The workflow continues to another agent but might come back later. The original agent then has delete one or more of the attachments. (and maybe create new ones)
    From the Workplace i can click on the paperclip (manage attachments) and then i get the option to "delete attachment", however if i choose that option i get an message saying: "no attachments that can be deleted"
    Now i know that attachments can not be deleted by other agents but i thought that the agent who created the attachment could delete it again.
    Any suggestion how to deal with this?
    Thx
    Robert

    Hi Robert,
    Use this wapi to delete the attachment in the workitem. "SAP_WAPI_ATTACHMENT_DELETE".
    But this Function module needs the workitem id as the mandatory parameter.
    Hope this is helpful to you.
    Thanks and Regards
    Balaji E.

  • Do not want to display mail attachments in the email body

    When I want to add word processing attachments, usually with .doc extension, the whole of the text is displayed in the body of the email.  I do not want this, I just want to show the name of the file such as MyLetter.doc or AnotherRamble.doc etc. 
    I use the doc extension because those on one of the other operating systems may not be able to read .pages extensions. 
    I may from time to time send files with the .xls extensions and more recently I have just sent 20 x A4 pages of scanned documents which have .jpg extensions, every one of these .jpg attachments is displayed in full in the body of the email, it makes them difficult to read and hard to print.  The original plan was to send 20 x .jpg, the recipient would print them out.  There is some complex data in these documents and honestly hard copies are essential at the other end.

    Control click or Right Click on the attachment in the body of the email and select 'View as icon'.
    There is a (paid for) mail plugin called Attachment Tamer which helps Mail do a much better of handling attachments - giving much more control over how they are viewed/arranged/received. It's available from http://lokiware.info/Attachment-Tamer
    (Usual caveat, I've no connection with Lokiware, just happy with their product).

  • How can I get Firefox 6 to recognize and display jpg attachments inside the new Yahoomail; this works in Firefox 5 and IE.

    In the new yahoo mail system, firefox 6 (installed two days ago or so), I am not able to view jpg attachments. The OS is XP. I can view text attachments. I am able to view these attachments in MS IE. On my laptop, where I am still using FF 5.0, there are also no problem in viewing the attached pictures.
    AFL

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Does anyone know how to permanently delete emails with attachments on the ipod touch?

    Hey guys, a few months ago I sent an email from my cell to my ipodtouch(I have the newest model) to a friend(she has a older model) does anyone know if you delete the email by clicking on trash then will it be non recoverable? Thanks

    You will need to empty also trash to be sure. The email and the attachment will not be on iPod but may be a copy will still be on a server of your provider according to the system he uses (IMAP or POP3) and according to the preferences you have set on the mail programs (leave message on the server... delete it after a date or after deleting it from inbox or... there are many possibility).
    If the mail message is still on a server teoretically you can download it again from the iPod or even another computer.. of course knowing your account settings and password.
    What is not clear in your message: you mention 3 devices: sent thge mail from your cell (1) to your iPod (2) and/or to your friend (3).
    Added later: you will also need to check the SentMessage Folder because a copy of the mail could also be there if you sett to keep a copy there.

  • How to remove file attachments using the SDK

    I am looking for ways to programmatically remove file attachments from work items.  If I recall correctly, the system only keeps the file for as long as the relationship exists, so that, in theory, the file is deleted from the database a soon as the
    relationship is removed.
    I found this
    Using the SDK to Create and Edit Objects and Relationships Using Type Projections
    Is this the only way or are the other, simpler ways for deleting relationships and/or file attachments?
    Is this something I could do with the Orchestrator Remove Relationship activity?
    A little background on this question: I have multiple different teams with varying data retention requirements for Service Requests.  My longest requirement is 3 years (audit) while most teams only require 90 days.  I was looking to add in some
    jobs for some more aggressive file attachment grooming to keep the database smaller.
    Thanks.

    The relationship is defined as a membership/containment relationship. So, yes, if you delete the relationship, the file attachment (and the associated blob) are deleted as well.
    Based on the background you described, I'm assuming you identify a bunch of work orders whose files you want to delete if they're older than X. So, for instance "Work Items with Y team; delete file attachments older than 90 days", "Work Items
    with Q team; delete file attachments older than 3 years". Is that right?
    If so, you don't necessarily need to delete relationships specifically...you can simply delete the file attachment objects which will delete the relationship, the file attachment object, and the associated blob (the file itself in the database).
    Using the SDK, you will not need type projections for this. You'll only need the work item object(s) (an incident or service request or whatever), the GetRelatedObjects<>() method, and an IncrementalDiscoveryData object.
    So, after you get all of the appropriate work items, you can use the following snippet to delete their file attachments if the attachments meet your age requirements
    //Connect to the management group
    String strMySCSMServer = "<my mgmt server>";
    emg = new EnterpriseManagementGroup(strMySCSMServer);
    IncrementalDiscoveryData idd = new IncrementalDiscoveryData();
    ManagementPackRelationship relWorkItemHasFileAttachment = emg.EntityTypes.GetRelationshipClass(new Guid("AA8C26DC-3A12-5F88-D9C7-753E5A8A55B4")); //System.WorkItemHasFileAttachment
    //Get the work item's related file attachments using it's Id
    Guid myWorkItemGuid = new Guid("<some work item guid>");
    IList<EnterpriseManagementObject> lstFileAttachments = emg.EntityObjects.GetRelatedObjects<EnterpriseManagementObject>(myWorkItemGuid, relWorkItemHasFileAttachment, TraversalDepth.OneLevel, ObjectQueryOptions.Default);
    //Loop through each file attachment
    foreach (EnterpriseManagementObject emoFile in lstFileAttachments)
    //Determine its age
    DateTime AddedDate = (DateTime)emoFile[null, "AddedDate"].Value;
    TimeSpan FileAttachmentAge = AddedDate.Subtract(DateTime.Now);
    //Prep the file attachment for deletion if it's old enough, in this example, older than 90 days
    if (FileAttachmentAge.Days > 90)
    idd.Remove(emoFile);
    //Submit the deletions to the database.
    idd.Commit(emg);

  • How to include attachments to the standard PO approval notifications attachments.zip file?

    Hi,
    Oracle EBS 12.0.6 and 12.1.3
    Following the ML Note Adding an Attachments Table Using Personalization [ID 790344.1], I have added an attachments table to the PO Supplier Change Request page. I am able to upload attachments and can see them in the tables. How can I include these attachments in the workflow notifications? When the notifications are received, PO pdf is attached and an attachments.zip file is included with other attachments but not the ones that I have uploaded using the new attachments table.
    To find how Oracle is able to attach files to a single zip file, I searched for "ZIP_ATTACHMENT" keyword in dba_source table and found it is being done in the APPS.PO_COMMUNICATION_PVT.GENERATE_PDF_BUYER package procedure.  Do I have to modify this procedure or is there a less invasive way, which is upgrade proof too?
    Thanks.

    Hi,
    Oracle EBS 12.0.6 and 12.1.3
    Following the ML Note Adding an Attachments Table Using Personalization [ID 790344.1], I have added an attachments table to the PO Supplier Change Request page. I am able to upload attachments and can see them in the tables. How can I include these attachments in the workflow notifications? When the notifications are received, PO pdf is attached and an attachments.zip file is included with other attachments but not the ones that I have uploaded using the new attachments table.
    To find how Oracle is able to attach files to a single zip file, I searched for "ZIP_ATTACHMENT" keyword in dba_source table and found it is being done in the APPS.PO_COMMUNICATION_PVT.GENERATE_PDF_BUYER package procedure.  Do I have to modify this procedure or is there a less invasive way, which is upgrade proof too?
    Thanks.

  • Delete existing document templates from a workflow pattern

    Hi folks,
    I have a workflow that uses the step that creates a document from a template (MS Word). Now I want to delete two of these templates and don´t want them to appear anymore when that workflow is being executed.
    So i deleted the template from the workflow and also from the binding to the step.
    I even deleted the template using the report RSWUODEL. But the "deleted" template still appears when the workflow is called.
    I also tried to make a new version of the workflow: no use.
    How can i get rid of these templates?
    Background: I am in an IS-U system (ERP) and the workflow is called by a front office process out of the CIC.
    Any help is welcome!
    Holger

    Deleted the whole step that creates the document. Created new step to create the MS document, defined the binding new.

  • When I add a picture to iPhoto, does it make a copy and keep the original?

    I'm trying to rid my computer of useless files lately and I was wondering, if I use iphoto to organize my pictured does it create a copy and save the original somewhere like how it does with itunes? if so where can I find these backed up pictures and delete the originals to get more space?

    I'm trying to rid my computer of useless files lately and I was wondering, if I use iphoto to organize my pictured does it create a copy and save the original somewhere like how it does with itunes? if so where can I find these backed up pictures and delete the originals to get more space?
    By default iPhoto copies imported photos to the iPhoto library and you can delete any copy outside of the iPhoto library once you have verified that the imports is good (I wait for at least one backup cycle before deleting the source photos)
    NEVER go into the iPhoto library and make any changes of any sort - there are no user serviceable parts within the iPhoto library and if you make any modifications to the content or structure of the iPhoto library you will corrupt your library and lose data
    LN

  • Deleting - My Photos/Attachments

    Hi,
    How do you delete My Photos/Attachments at the bottom of the mail page? No delete options on menu or Rclick. Thanks

    Hi jollyjim.
    Not sure what you mean, but it looks like Message > Remove Attachments is what you’re looking for.

  • Error: "The workflow could not delete the list item"

    Have set up 2 lists:  Events and EventsArchive.  They have all the same fields.  I have created a workflow in SPD using an impersonation step (I have Full control of the site/site collection).  Workflow is essentially this:
        If Curent Item:Expired 
    equals
    Yes
           Copy item in Current Item to
    EventsArchive
           then Delete item in
    Current Item.
    The item is copying over to the EventsArchive list just fine, but the "delete" part is not happening.  Instead, I get the following error:
    The workflow could not delete the list item. Make sure the list exists and the user has permissions to delete items in the list.
    The list obviously exists (or I wouldn't be able to copy an item from it), and I have as much permissions as anyone can have, so I'm not sure where else to turn with this. 
    Thanks in advance for your help!

    Hi,
    To test the issue, I create a simple workflow without using Impersonation step:
    It works.
    Could you please create new lists to avoid custom settings and test the issue again?
    Similar thread:
    https://social.msdn.microsoft.com/Forums/office/en-US/3fa94026-4487-4e4c-a5b4-12a79d6ee6a2/workflow-delete-item-not-working?forum=sharepointcustomizationprevious
    Regards,  
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Delete partially copied movie file from iPhone. Shows grayed out in Videos on the iPhone but it doesn't show up in iTunes.

    Hello.
      I have synced my iPhone 4S with iTunes and I got an error while copying one movie. Now this movie shows up grayed out in videos on the iPhone but NOT in iTunes. Hence, I cannot delete this partially copied movie from my iPhone. And since it is grayed out, the right-to-left swipe does not work. I have resynced with "no movies" option so that every movie would be deleted and indeed every movie was deleted except for the problematic one. I rebooted the iPhone several times in case it was a glitch. No success. I even tried tools like iExplorer and DiskAid but I cannot find this **** file. Is there any way to delete this partially copied file from the iPhone without having to restore it?
    Regards,
    HawkeyeQ

    Hi adtsalmon,
    You can only watch the movie on the device you rented it on. Here's a snippet from the Apple Support site (italics mine):
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    Here's the link to the Movie Rentals FAQs site FYI:
    http://support.apple.com/kb/HT1657
    Hope this helps!
    Cheers,
    GB

  • How to delete copyed wrongly in the data base

    Hi Gurus,
    I  copy the cube 0IC_C03 to Z0IC_C03.
    After that i went to RSZC--> copy from 0IC_C03 to Z0IC_C03 all the queries, but when i am copying i dint remove the _1 beside each query. when i repeat system telling queries already in the data base. can you tell how to delete and copy freshly.
    Points Assure.
    Thanks
    Amarendra

    Hi,
    you can use rszdelete where you can choose the queries and query objects which you want to delete.
    After this you can start the copy again.
    regards
    Cornelia

  • Workflow Issue : Email sender display name not as the same as alert email sender

    Dear Support,
    we customized a workflow for sending alert to some user when someone create a new item in the specified document library. 
    what we already done as below
    1. the email sender address has been setup at "Central Administrator", for example "[email protected]".
    2. team site title is "Customer Center Platform".
    3. we customized a new workflow to trigger system send a email to recipient when someone create a new record.
    what we expected is 
    Recipient will got a email which send from "[email protected]", the email display name should be "Customer Center Platform [[email protected]]", but in this case, the display name is "[email protected]".
    it's been our experience that when we used "Alert Me" function, system will send the email and used "Customer Center Platform [[email protected]]" as email display name.
    we want to change workflow email sender display name, what can we do? we are looking forward to your advice, many thanks.

    Dear Hemendra,
    thanks for your reply.
    we follow the below guide to setup the workflow step by step
    http://blogs.msdn.com/b/publicsector/archive/2007/05/22/document-workflow-how-to-sending-an-email-with-sharepoint-2007-moss.aspx
    we used "Send an email" Action, the recipient can receive email, but the email sender's display name is "[email protected]",
    we want to change to "Customer Center Platform [[email protected]]".
    There is a native "Alert me" function under sharepoint team site, we compared the email sender display name, we found the display name in "Alert me" notification email
    is "Customer Center Platform [[email protected]]". 
    we have no idea what is wrong when we setup the workflow.

  • IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend's

    IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
    Has anyone come across this? Your advice/help would be most appreciated

    This happens to me all the time.
    If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
    I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
    Message was edited by: Demo

Maybe you are looking for

  • Mirror iOS device screen via Lightning?

    I have a requirement to be able to mirror iPad/iPod/iPhone screens to a Mac for demonstration purposes. There are solutions out there which mirror the screen over the WiFi connection, but unfortunately this won't work for me as I need to demonstrate

  • HDMI hook-up

    I have the TX2 and I want to know how -or if it is worth it- I can go about hooking my laptop to my HDTV.  I see a VGA port on the laptop but no actual HDMI port.  Is there an accessory that I can buy to make the connection that is not that expensive

  • Software Version 7.36 in Nokia asha 311

    how long it takes to get the version 7.36 in america latin spanish version? some alternative?

  • Check Information

    Hi I have posted the document using F110 It has given that "Payment run has been carried out"                          Posting orders: 1 generated, 1 posted" so far so good. Now the problem is when i tried to dispaly the check information using the p

  • SP2-0226: Invalid line number

    How can I look up error codes? Also, does anybody know what this means? It doesn't seem to affect the way the procedure runs.