IPA - S3 only attaching custom file to email

 7 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
MC
Advanced Member
Posts: 41
Advanced Member

    We have a custom PF that is writing a csv file that we want to attach to an email.

    when we write it, it is going to the bpm directory

    when we try to attach it, it is trying to attach from the LPS\emailattachements directory   how do I link it back to the same directory it is being created in ?

     

    thanks

    Carl.Seay
    Veteran Member
    Posts: 109
    Veteran Member
      Create a variable that includes the full path and file name. Then use that variable for both the File Action node and E-mail attachment.
      John Henley
      Posts: 3353
        Man, you are fast! And correct!
        Thanks for using the LawsonGuru.com forums!
        John
        MC
        Advanced Member
        Posts: 41
        Advanced Member
          I have no problem creating the file, but from my reading it appears that in LPA (IPA) the system hard codes that all attached files be on the email server.

          in 9 I could set a variable to attach it to the email using (EX)  GENDIR + /bpm/file.csv

          to attach the file  (when I defined the file as file.csv on the write statement..etc)

          (since by default these go to the bpm directory)

          I need a solution that will work both on the test server and when we move to production - without making code changes.   I really don't want to hardcode anything if I can help it. 

          It may be that the I have to use the OTHER option on the attachment tab?   Any other options ...again, don't want to hardcode all the string.




          Woozy
          Veteran Member
          Posts: 709
          Veteran Member

            Hi MC - It appears you've found a bug...

            I just created test flows in IPA 9.2.5 and in IPA 10.1.1.4.  The 9.2.5 flow worked correctly by creating the file where I told it to put it, and attaching that file to the email.  However, the 10.1.1.4 version did NOT do this, and I got the "Attachment: null\system\LPS\emailattachments\{whatever} does not exist." error on the email node.

            Sounds like it needs to be submitted as a bug.

            I've attached screenshots of my flow, in case anyone want to validate.

            NOT GOOD!!!

            Kelly

            Attachments
            Kelly Meade
            J. R. Simplot Company
            Boise, ID
            Woozy
            Veteran Member
            Posts: 709
            Veteran Member

              I did a little more fiddling this morning, and I'm feeling much better. 

              I uploaded the LMRK10 version of the flow to the server and ran it, and it worked perfectly and pulled the file from the location I designated in the variable.

              I also realized that in the LMRK9 Designer, it doesn't actually attach the attachment to the email, but instead includes a note in the email that says:  "These attachments would be sent in run mode:  ".  It seems that the v10 desiger

              Something is goofy with Designer, but the server seems to be working fine - at least on v10.1.1.4.

              Kelly Meade
              J. R. Simplot Company
              Boise, ID
              MC
              Advanced Member
              Posts: 41
              Advanced Member
                 I have been running these on the server (IPA S3 only - 10.1)

                My logic looks similar to what you have in the example that you supplied last night.  In you response this AM are you saying it is now working ?  What I get is exactly what you are getting in the example you posted.



                thanks again
                Woozy
                Veteran Member
                Posts: 709
                Veteran Member
                  When I run my sample flow on the server, it works fine.  When I run it in Designer, it fails.

                  This is IPA running on Landmark on our TM server, but this functionality should be the same since they are both running on the Landmark grid.  You may need to open a ticket with IGS to figure out what's going on.
                  Kelly Meade
                  J. R. Simplot Company
                  Boise, ID