Hoppa till huvudinnehållet

How do I get the list of attributes from a query result?

Kommentarer

4 kommentarer

  • Stefan Schweigert

    Hi Ethan,

     

    Are you entering '=$query1.features' as the Features input to the Get Feature Attribute Values activity, and using the =$attributeValues1.values output?

     

    Thanks, Stefan

    1
  • Zack Robison

    I think Stefan is onto your problem, but would add that I'd run the Array.Map() and .Join() methods on your .features property to do this efficiently.

    0
  • Ethan Granger

    I was using .value instead of .values and .values already spits out in comma separated list! Thank you!

    0
  • Ethan Granger

    Follow up question: if my result set (more than one result) has a MailAddress field and a MailCity field, how do I get both fields in a single Get_Feature_Attribute_Values activity so that the Address stays with the associated city? Would I need the For Each function? If so, i assume i need to put the result of the For Each into a variable, but I don't see any variable items in the toolbox.

    I'm expecting some return variable that is a list like ["123 Main St, Seattle", "456 Broadway, Dallas"] that i can display to the user in a form.

    0

Du måste logga in om du vill lämna en kommentar.