Aller au contenu principal

Add "Get Selected Features" to Workflow 5

Non planifiée

Commentaires

3 commentaires

  • Lauren MacLean

    Please please please.


    This is the first step in almost every essentials workflow we have. It is really clunky for the us and the users to have to go into the results set context menu to launch a selection-specific workflow (using workflow inputs).

    0
  • Michael Wallace

    Has this been Implemented Yet? 

    0
  • Zorba Conlen

    I think this is possible now, in VSW. I guess it would not help with WAB.

    There is an operation called ‘results.get-features’. Described as ‘Returns the current set of features from a specific results component if a model or model ID is specified, otherwise from all results components. Web only.’

    So, one can use the run operation workflow activity with that operation name. It will return an array of results, each of which is an object with properties such as title, primaryKey, geometry, etc (use log activity and you can explore the features in browser dev tools). Once you have the features, you'd probably want to loop over them with a 'for each' activity. There are probably a few approaches to proceed. For my use case, I'm converting to Json (text) and then using arcade to extract the desired attribute value and like that…

    One note of caution with this approach - I think the features returned are vertigis features. The structure of the object could change with future releases and that could impact the WF. 

     

    0

Vous devez vous connecter pour laisser un commentaire.