Upload files to a GP tool via workflow 5
Not plannedHi
I want to use a GP tool that needs an csv file as input, that is usually okay, you enable “upload” when sharing the tool.
Having a Wigdet (Not workflow) you can then upload a csv file via the Upload Item service:
But this is not possible to do via workflow 5, and since you need to have the csv file within the GPTool itself, with a Item ID you can refer to in your Input parameters :
It is not enough to use the display form and upload the file – this is possible in Workflow 5, but you cannot refer to it when calling the GP tool within workflow 5.
The problem arises because uploaded items will be deleted after a period of time, and the item you refer to in the “Run Geoprocessing (asynchronous)” will eventually be deleted.
So how can I upload a file with Workflow 5 like I would do in a widget or rest end as shown in the first picture.
For your information I have found this link that discuss the topic, but not really answering it, and another thing it seems as if this was easy to do with workflow 4, so how do I do it with workflow 5 ?
How to Upload file using Send Web Request Activity? – VertiGIS
Thanks for your help and I look forward to your reply
-
Official comment
I think this would need to be a new activity that performs the upload and then gives the itemid as an output. You would then submit the job in a separate step, using the id you got from the first one.
Comments
1 comment