PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06/01/2016 1:16 PM by  Corvette Jim
Email Node - Include a picture in email content
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
agersh
Systems Analyst
Martin Health System
Veteran Member
(126 points)
Veteran Member
Posts:64


Send Message:

--
05/10/2016 2:51 PM
    Is it possible to include a pictures/graphics in the email content area of the Email node? I am assuming that the content type will need to ne HTML.   
    Woozy
    Private
    Private
    Veteran Member
    (3472 points)
    Veteran Member
    Posts:702


    Send Message:

    --
    05/10/2016 3:56 PM

    Hi agersh,

    This is possible, though it works best with a static image. 

    The way I've done it is to store the image in the $LASYSDIR/LPS/emailattachments/ folder on the IPA server (we're on Unix, so adjust if you are on Windows).  Then, in the email node, the image is referenced by name as an attachment - just the image name and extension.  Then within the node html, call it with an img tag (or whatever) with src="cid:{imagename.ext}". 

    NOTE:  You have to add it to the Attachments tab for this to wrok, but it won't appear as an attachment in the email itself but will appear within the email body as an image.

    By the way, there is probably a way to do this with dynamic images, but I'm not sure.  You could try adding your image via variable and using cid:{variablename} and see if that works.

    See the attached sample flow (you'll need to change the extension...).

     

    Good Luck!

    Kelly

     

    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Attachments
    agersh
    Systems Analyst
    Martin Health System
    Veteran Member
    (126 points)
    Veteran Member
    Posts:64


    Send Message:

    --
    05/12/2016 7:57 AM
    Thanks Kelly, Great example, thank you again.
    Corvette Jim
    Dev Business Analyst - Sr - Process Automation
    Private
    New Member
    (3 points)
    New Member
    Posts:1


    Send Message:

    --
    06/01/2016 1:16 PM

    I have used pictures in the past for displaying company logos and pictures of requisition items using HTML and just pulling the pictures from web servers. I this case these pictures of items would need to be scanned first and identified by item number. Then pulled dynamically based on that item being in the requisition. This also pulls any header and line comments and add them to the Email as well as some basic requisition information. This email will show up with images already displayed and also a " View Requested Item" button showing same thing, just in a pop-up screen.

     And if you use the Notify tap in the user action instead of email node you can add the Action Buttons (Approve, Reject) to it.

    So I also attached the code in a notepad document.

     

     

    I hope this helps.

    Jim

     

    Attachments
    You are not authorized to post a reply.