Community forum

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


maeru
  •  maeru
  • No customer Topic Starter
2009-10-28T15:57:11Z
We have a folder which we monitor there might be XX files in it. We would like VisualCron to create one e-mail for the first file as an attachment then delete the file after the mail has been sent, then a second mail for the second file then delete again that file after the mail has been sent and so on.

How can we achieve this in VisualCron?

We use version 5.3.1

Thanks for a good solution
Sponsor
Forum information
Support
2009-10-29T23:52:23Z
Basically, you create the following:

1. One Job with a File Trigger
2. An Email Task where you use the FullPath Variable from the File Trigger as attachment
3. A File delete Task - which also use the FullPath Variable

You should configure the Job settings to:

"Put Job in queue" option checked.

Here is the Variable to the file which can be used everywhere:

{TRIGGER(Active,LastTrigger,File.Result.FullPath)}

You might want to look up the Variable for just the name and one for the folder to use in the File filter in attachment and delete file.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
maeru
  •  maeru
  • No customer Topic Starter
2009-10-30T10:54:49Z
i created the Job as you told me for the email attachment and delete taks
i have used the following Variable.

Folder: {TRIGGER(Active,LastTrigger,File.Result.Folder)}
File: {TRIGGER(Active,LastTrigger,File.Result.FileMask)}

It runs if i copy file per file into the trigger folder, but if i copy multiple file into the folder then it sends for each file an empty email and all files are attachet at the last email.

Example: Copy 5 Files in the Trigger Folder
Mail: 4 Mails with no attachment
1 Mail with 5 attachments

But we need to be sure that each file are sent with an own mail out.

Support
2009-10-30T11:03:23Z
Install the latest beta 5.3.7. and make sure that you have "Put job in queue" checked.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
maeru
  •  maeru
  • No customer Topic Starter
2009-10-30T14:18:38Z
It's the same problem with the new Version
Put job in queue is checked.
Support
2009-10-30T14:25:02Z
You need to change the Variable use use the explicit file name (not mask). That is why you get all attachments in same email right now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
maeru
  •  maeru
  • No customer Topic Starter
2009-11-02T07:41:30Z
How can i use use explicit the variable ?
I have to Fields Folder and Mask and both are mandatory?

i tried with
Folder: {TRIGGER(Active,LastTrigger,File.Result.FullPath)}
And Mask: *

not working please tell me how can i insert the fullPath to the email part.
Support
2009-11-02T10:02:41Z
Folder path: {TRIGGER(Active,LastTrigger,File.Result.Folder)}
File name: {TRIGGER(Active,LastTrigger,File.Result.Name)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
maeru
  •  maeru
  • No customer Topic Starter
2009-11-02T10:30:35Z
Thanks it's working as requested.
👍
riddhi
2010-08-23T23:34:08Z
I am doing same way as you mentioned
File Triger: Absolute folde Path with File mask *.*

Folder: {TRIGGER(Active,LastTrigger,File.Result.Folder)}
File: {TRIGGER(Active,LastTrigger,File.Result.Name)}

and i got the error as

"Exception in Task.The given path's format is not supported".

Support
2010-08-24T07:37:13Z
riddhi wrote:

I am doing same way as you mentioned
File Triger: Absolute folde Path with File mask *.*

Folder: {TRIGGER(Active,LastTrigger,File.Result.Folder)}
File: {TRIGGER(Active,LastTrigger,File.Result.Name)}

and i got the error as

"Exception in Task.The given path's format is not supported".



You probably need a Credential (same as in the File Trigger).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top