Results 1 to 3 of 3

Thread: Transform - Send Email with variable number of attachments

  1. #1
    Member
    Join Date
    Jan 2002
    Location
    Valley Forge, PA
    Posts
    84

    Transform - Send Email with variable number of attachments

    I am looking for someone who has been able to create a solution to send an email message using the Send Mail object with a variable number of attachments. These attachments are images from a known network folder.
    I am just not sure how to create the message with a variable number of attachments.
    E1 9.2 TR 9.2.2.1
    Netscaler traffic managers
    SQL Server 2016
    Weblogic Web Servers, Windows Enterprise Servers
    Transform 7.0

    I do all my own stunts!

  2. #2
    Member
    Join Date
    Dec 2000
    Location
    Australia
    Posts
    583
    Hi,

    You can use a Container object to feed into the Attachments variable on the Send Mail control. The container object should have subcontainers for each attachment structure as: "Each attachment is identified within a subcontainer that contains the name, content, and, optionally, the MIME content type of the attachment." (from the Transform help)

    I have put together a sample branch for you. I hope this helps. I am using Transform 5.3 but it shouldn't be much different in v7 if at all.
    Attached Files Attached Files
    Justin Miller

  3. #3
    Member
    Join Date
    Jan 2002
    Location
    Valley Forge, PA
    Posts
    84
    Justin
    Thanks for your insight. My problem was a little more complex as the number of attachments vary with email occurrence of the branch based on the number of attachment files that the user requires.
    Anyway, I did finally accomplish this in this manner:

    1) Load a bag using Check Directory object gathering all of the file names that need to be attachments.
    2) Build a container in the format to mimic the Send Email attachments folder - (Name, Content, Type)
    3) Scan the bag from step 1 and load the container accordingly for each file (images) in the list.
    4) Substitute the bag container name for the attachments folder in the Send Email object.

    Seems to work fine. And, in the meantime, I figured out how advanced container objects work the hard way..

    Tim Boatwright
    E1 9.2 TR 9.2.2.1
    Netscaler traffic managers
    SQL Server 2016
    Weblogic Web Servers, Windows Enterprise Servers
    Transform 7.0

    I do all my own stunts!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company and, or Oracle.