I am trying to use the “Flow” feature to convert files. The “run script” should run when “tag assigned” is set. I would now like to pass the tag name as a parameter for the run script. But in the manual at https://github.com/nextcloud/workflow_script#placeholders there is no matching placeholder documented.
Is there a placeholder, or how else could I pass a parameters of the script depending on the tag assigned?
Run script: /tmp/script.sh %n %XYZ
where script could look like:
I think that isn’t possible yet. You have to create multiple script calls each one for a single tag, or you try to read/extract assigned tags using e.g. an API call as described here. The example api calls are to set or delete a tag, but it shouldn’t be that difficult to create a get request based on it.
Additionally you can create feature request in the app specific GitHub repository:
thanks @gas85 and @j-ed for your comments. I will try to extend my script to retrieve the tag via curl. But this would require to store the user and password in the script. This may be a quick hack, but I don’t like it …