Howdy!
I'm writing a python tool to download data from a hosted feature layer in our Portal to a csv file. I've got it working when downloading all data, but I want to be able to filter the data based on the Site field. What I'd like to have is the Site parameter in the tool be a dropdown of the unique values in the Site field.
I can do this if I manually fill in a Value List for the parameter, but ideally it should read them from the layer. Even better, I could also use this to filter the gis.content.get call, but I don't see a filter option there. I can filter the results in a dataframe before exporting to csv if necessary, but still don't know how to populate the parameter list. Is this possible? Thanks!