Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining Dynamic variable for attachment in Send email #36

Open
Nilishachauhan opened this issue Apr 6, 2021 · 2 comments
Open

Defining Dynamic variable for attachment in Send email #36

Nilishachauhan opened this issue Apr 6, 2021 · 2 comments

Comments

@Nilishachauhan
Copy link

Hi,
I want to send email with attachment having suffix as current date. This attachment is output of SQL which will be generated daily like test_check_1_$FILE_NAME.txt where $FILE_NAME is current date in yyyy-mm-dd format.

In one of the task where I am checking conditions the variable is picked up as I have defined variable value in first step i.e. prepare SQL

In attachment absolute path I have given the path as C:\agent\test_check_1_*.txt
Error- Could nor find a file

@renevanosnabrugge
Copy link
Owner

renevanosnabrugge commented Apr 7, 2021 via email

@Nilishachauhan
Copy link
Author

Sorry for the typo. The path I have given is -C:\agent_work\1435\s\test_check_1_$FILE_NAME.txt. Attached is the error
The path that I have given in previous comment is working actually it is a work around so all the files with name test_check_1_*.txt will be sent in mail. But I want to send the exact file
error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants