Network Automation Software
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: GetEmail Action - Attachments not usable
Topic Summary:
Created On: 09/04/2009 02:40 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 09/04/2009 02:40 PM
User is offline View Users Profile Print this message

Author Icon
JasonRipkey
n00b (>6 posts)

Posts: 1
Joined: 06/13/2009

I am running Version 7.1.0 of Automate Pro, and I am having trouble saving attachments.  Ever since I updated to version 7.1.0 the attachment saving from the GetEmail action are not usable.  The attachments save, but when I go to open one of them, for example a PDF file, my PDF viewer states that it is not a valid PDF file.  The step has worked prior to version 7.1.0.  I can not go back to version 7.0.8.1 due to the fact that I really need to HTML message body of the get email action.

 

Any help would be greatly appreciated.

 

Here is the Code:

<AMVARIABLE NAME="FileDate"></AMVARIABLE>
<AMTEXTFORMATDATETIME DATETIMEFORMAT="mmddyy-hnn" RESULTVARIABLE="FileDate" />
<AMVARIABLE NAME="TickerSubject"></AMVARIABLE>
<AMVARIABLE NAME="OutlookSubject"></AMVARIABLE>
<AMVARIABLE NAME="TickerSubjectRAW"></AMVARIABLE>
<AMVARIABLE NAME="TickerSubjectEnd"></AMVARIABLE>
<AMVARIABLE NAME="DocTitle"></AMVARIABLE>
<AMVARIABLE NAME="DocTitleRAW"></AMVARIABLE>
<AMVARIABLE NAME="DocTitleEnd"></AMVARIABLE>
<AMVARIABLE NAME="DocNum">0</AMVARIABLE>
<AMVARIABLE NAME="SavePath"></AMVARIABLE>
<AMVARIABLE NAME="DocExt"></AMVARIABLE>
<AMGETEMAIL ACTION="all_messages" USERNAME="Library" PASSWORD="AM1kpBsBFR32BTTrrz5RZjXxg==aME" RESULTDATASET="Messages" SAVEATTACHMENTS="NO" PROTOCOLTYPE="WEBDAV" MAILBOXURL="https://sf03.steadfast.com/exchange/library@steadfastfin.com/" DOMAINNAME="steadfast" />
<AMLOOP TYPE="DATASET" DATASET="Messages">
     <AMFINDTEXT TEXT="%Messages.Subject%" FIND="#[^"\r\n]*," RESULTVARIABLE="TickerSubjectRAW" USERE="YES" FOUNDTEXTVARIABLE="TickerSubjectRAW" />
     <AMIF EXPRESSION="%TickerSubjectRAW% = """>
          <AMGOTO LABELNAME="NextMessage" />
     </AMIF>
     <AMTEXTREMOVE REMOVE="user" CHARACTERS="#" ACTION="remove_beginning" TEXT="%TickerSubjectRAW%" RESULTVARIABLE="TickerSubjectEnd" />
     <AMTEXTREMOVE REMOVE="user" CHARACTERS="," ACTION="remove_end" TEXT="%TickerSubjectEnd%" RESULTVARIABLE="TickerSubject" />
     <AMFINDTEXT TEXT="%Messages.Subject%" FIND=",[^"\r\n]*." RESULTVARIABLE="DocTitleRAW" USERE="YES" FOUNDTEXTVARIABLE="DocTitleRAW" />
     <AMIF EXPRESSION="%DocTitleRAW% = """>
          <AMGOTO LABELNAME="NextMessage" />
     </AMIF>
     <AMTEXTREMOVE REMOVE="user" CHARACTERS="," ACTION="remove_beginning" TEXT="%DocTitleRAW%" RESULTVARIABLE="DocTitleEnd" />
     <AMTEXTREMOVE REMOVE="user" CHARACTERS="." ACTION="remove_end" TEXT="%DocTitleEnd%" RESULTVARIABLE="DocTitle" />
     <AMCLIPBOARDSET>%Messages.BodyHtml%</AMCLIPBOARDSET>
     <AMSET VARIABLENAME="SavePath">\\sf05\shared\Library\%TickerSubject%\Mail\%DocTitle%-%DocNum%.doc</AMSET>
     <AMIF FILE="%SavePath%">
          <AMINCREMENTVARIABLE RESULTVARIABLE="DocNum" />
          <AMSET VARIABLENAME="SavePath">\\sf05\shared\Library\%TickerSubject%\Mail\%DocTitle%-%DocNum%.doc</AMSET>
     </AMIF>
     <AMFILEWRITE FILE="%SavePath%" APPEND="NO">%Messages.BodyHtml%</AMFILEWRITE>
     <AMIF EXPRESSION="Messages.Attachments = """>
          <AMGOTO LABELNAME="NoAttach" />
     </AMIF>
     <AMGETEMAIL ACTION="one_message" USERNAME="library" PASSWORD="AM1kpBsBFR32BTTrrz5RZjXxg==aME" RESULTDATASET="Messages2" MESSAGEID="%Messages.MessageID%" PROTOCOLTYPE="WEBDAV" MAILBOXURL="https://sf03.steadfast.com/exchange/library@steadfastfin.com/" DOMAINNAME="steadfast" ATTACHMENTDEST="\\sf05\shared\library\%TickerSubject%\Mail\" SAVEMODE="overwrite" />
     <AMLABEL LABELNAME="NoAttach" />
     <AMLABEL LABELNAME="NextMessage" />
</AMLOOP>

Thanks.

 09/04/2009 03:20 PM
User is offline View Users Profile Print this message

Author Icon
Ronak Patel (N.A.)
Master (500-999)

Posts: 889
Joined: 07/20/2006

Hi JasonRipkey,

Can you please send a very simple task outlining this issue to support@networkautomation.com Attn: Ronak Patel? Our QA team is investigation this issue. We will update you with our progress.

-------------------------
// Ronak Patel,
// Automate Development Team
// Network Automation, Inc. - No Code, No Limits Business Process Automation
 07/30/2010 02:01 PM
User is offline View Users Profile Print this message

Author Icon
CraigKerstiens
n00b (>6 posts)

Posts: 1
Joined: 07/16/2010

I'm encountering the same error with attachments downloading of 0 filesize with none of their actual content. Was there a workaround of a fix for this?

 07/30/2010 02:05 PM
User is offline View Users Profile Print this message

Author Icon
Rick Johnson (N.A.)
Master (500-999)

Posts: 901
Joined: 07/14/2008

Hi Craig,

What version of AutoMate are you running?

-------------------------
- Rick Johnson
Network Automation
Statistics
9533 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.

FuseTalk Enterprise Edition v3.2 - © 1999-2010 FuseTalk Inc. All rights reserved.

Sitemap