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

Upload with function - using custom functions #538

Closed
Fry115 opened this issue Aug 20, 2019 · 2 comments
Closed

Upload with function - using custom functions #538

Fry115 opened this issue Aug 20, 2019 · 2 comments
Labels

Comments

@Fry115
Copy link

Fry115 commented Aug 20, 2019

Hello,

I am trying to upload images automatically to a business page, the images change their name 4 times a day with a timestamp and a correlative, create a function that if I echo it generates the string I want to upload but at the time of concatenating the timestamp and the correlative to the upload option when uploading the image does not detect as a timestamp or correlative function:

upload #scv_file_file_provider as "upload_master" + timestamp () + "-" + run + ". csv"

Thanks.

@kensoh kensoh added the query label Aug 21, 2019
@kensoh kensoh changed the title Upload with function. Upload with function - using custom functions Aug 21, 2019
@kensoh
Copy link
Member

kensoh commented Aug 21, 2019

Hi @Fry115 yes you can create custom functions. More details and example below -

https://github.com/kelaberetiv/TagUI#helper-functions
#236 (comment)

After you create the custom function generate_filename(), you can call it using below -

upload #scv_file_file_provider as `generate_filename()`

Your above line may be is not working because you use quotation marks. There is no need for quotation marks in the text parameter for upload. The backtick ` is used to denote variables and functions as TagUI default context for many steps is text and not variable, to make the usage more like natural human language.

@Fry115
Copy link
Author

Fry115 commented Aug 21, 2019

Hi Ken Soh,

It worked, very grateful :)

Thanks!!

@Fry115 Fry115 closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants