Python Script output in a variable?

More
2 years 4 weeks ago #24037 by prashant

I think <f001> must be in quotes
IT works with quotes !!

Another question

etltools.GetVariable('<VariableName>')
Can I get an example or purpose of this ? Since we are already able to get the parameters directly ?
It's usage will be like below?
myvariable = etltools.GetVariable('<VariableName>') ??


etltools.WriteToLog('Important Message')
I keep forgetting , where the logs are :(
 

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #24038 by prashant
ALSO !!
When running python scripts inside SCRIPT , I assume command line variables cannot be passed?  instead of this I will have  to then pass variables via Set variables package??


parser.add_argument('--file_path', required=True, help='Path of the file to upload')
parser.add_argument('--parent_folder_id', required=True, help='Google Drive parent folder ID')
parser.add_argument('--delete_after_upload', required=True, help='Delete the file after uploading (True/False/Yes/No/1/0)')
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #24039 by admin
1 yes this one should work

myvariable = etltools.GetVariable('<VariableName>') 

2 When running python scripts inside SCRIPT , I assume command line variables cannot be passed?  instead of this I will have  to then pass variables via Set variables package??

Correct

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save