Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


cupcakeman82
2015-12-28T11:09:43Z
I am trying to display a file name in an email body, the email is fired on an ftp success task:
UserPostedImage

UserPostedImage

the task is fired based on a remote trigger file inserted in a folder on a ftp server, I am trying to get this file name, and display it in email.

I have tried {TRIGGER(Active|LastTrigger|RemoteFile.Result.Name)}

but I got argument error.

I am surprised I couldn't find anyone asking this here on forum this must be so fundamental demand 😕 😕 😕 😕 , I have only found very few threads on this.

What am I doing wrong?
Sponsor
Forum information
Support
2015-12-28T11:44:45Z
Can you please share the error message for 'argument error' ? Please also share when exactly do you get this message.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
cupcakeman82
2015-12-28T12:05:58Z
Originally Posted by: Support 

Can you please share the error message for 'argument error' ? Please also share when exactly do you get this message.



The mail notification is set on "success" of the ftp task, I received it after the task is completed on success.

There's no error message, I receive the email with a "Error in argument" instead of the variable.

I have also trying the "( TASK(Active,Result.UploadedFilesNames) in email body, but I got (No match on Variable: TASK(Active,Result.UploadedFilesNames) for this task type)


I am very new to VC, so I am not sure if this how we put variable in email body
http://i.imgur.com/TA49Jmp.png 


cupcakeman82
2015-12-28T12:07:46Z
Ok, I have tried several variables at once in the email body:

A new PO file has been uploaded.

{TRIGGER(Active|LastTrigger|RemoteFile.Result.Name)}

{TASK(Active,Result.DownloadedFilesNames)}

{TASK(Active,Result.UploadedFilesNames)}

{TASK(ffac0f64-8650-42c1-ae97-fe79b86e61ce,Result.UploadedFilesNames)}

{TASK(ffac0f64-8650-42c1-ae97-fe79b86e61ce,Result.DownloadedFilesNames)}


The email displayed like this:

A new PO file has been uploaded.

Error in argument

(No match on Variable: TASK(Active,Result.DownloadedFilesNames) for this task type)

(No match on Variable: TASK(Active,Result.UploadedFilesNames) for this task type)

520140828124239_XXX51203_PRMS_.xlsx

520140828124239_XXX51203_PRMS_.xlsx
520140828124239_XXX51203_PRMS_.xlsx



It seems the last three variables worked, but I am not sure what really happened.
Support
2015-12-28T18:57:05Z
It could be that the Variables which did not work did not belong to a defined instance of the Trigger. Please make sure that the Variables you select actually belong to a Trigger which has been defined. For example, in the screenshot below, I have defined a Trigger for Job 1, and I select a Variable from this Trigger.
remote_fie_trigger.png
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top