Classic file types are no longer available for use as of January 2021. You can transition your classic files or download a PDF. Learn More

Updating Query Parameter Values in Chains

Beantwoord
1

Opmerkingen

7 opmerkingen

  • Jeff Hickey

    Hi John, below are suggestions of some commands that may help you to accomplish this goal.

    1. To read a specific cells from a Sheet, use the Get sheet data command.
    2. Get the value that was retrieved in the above step using the Extract value command.
    3. To run a Query from Chains, use the Run query command. Configure the Parameters section to use the Extract value variable from the previous step. For more information, please reference the documentation on using command outputs with other commands.
    4. Finally, the Export query result command can be used to send the results to a specific Sheet within a Spreadsheet.
    0
  • John May

    Jeff,

    Thanks for the response, it helped and I was able to fix my problem which was not using the extract value command.

    I'm able to get the query to export automatically within the chain, but if I try to export a view as part of the chain, I can't get the export view to work. 

    Are you able to provide a similar write-up for the export view?

    0
  • Jeff Hickey

    Hello John,

    Yes, there are a number of pivot view commands you can use in your Chain. Below is a list of them:

    The full list of Workiva Chain commands can be found at https://support.workiva.com/hc/en-us/articles/360036005471-Workiva-commands

    Without knowing the specific error you're seeing, it will be tough to point you in the right direction. But in general, you can get a list of pivots, then download the one you want from the list.

    0
  • Rory Mulhern

    I am trying to do the same thing (take cell value from spreadsheet, use as parameter in filter of query), but the parameter I am trying to update in the query is a multi-select parameter. It works fine when I am only selecting one value for the parameter, but when selecting more than one option, or all possible options the query tries to find records with "value 1, value 2, ..., value n", instead of "value 1" OR "value 2" OR ... OR "value n". Therefore, it is unable to find any records with a single entry = "value 1, value 2, ..., value n", so the query returns no results. Any guidance / ideas on how to update the parameter using Chains when it is a multi-select parameter?

    0
  • Emily Herold

    Hi, Rory!

    If you are using multi-select, it should default to "IN" rather than "=." To confirm is your Filter is set to "IN" for that parameter?

    0
  • Rory Mulhern

    Hi Emily, that's correct, I am using the "Is in List" (Builder view) or "IN" (SQL view). The issue is that the multi-select parameter input text to the "Run Query" is being treated as a single item instead of as multiple items to make a list to check against. I am unsure how to get the query to recognize the text as separate items and include any entry as long as the applicable field value matches any of those items.

    0
  • Emily Herold

    Thanks for the clarification, Rory. To best help you, I have created a ticket for Support. A member of Support will reach out and we'll update this post with any added information.

    0

U moet u aanmelden om een opmerking te plaatsen.