Import and export query definitions (JSON) in web view Query

Building a query in web view means clicking in every criterion by hand. For queries with many conditions, nested AND/OR groups and summary fields with date filters, that takes a lot of time and is easy to get wrong. It's especially frustrating when the same logic already exists in another query, or when a colleague has written down the criteria and someone else has to rebuild them line by line.

The Query API already represents queries as JSON (select fields, filter fields with query_field_ids, operators, values). Please make that available in the UI as well:

Export definition: a button on a saved query that downloads its criteria, output fields and sort order as a JSON file.

Import definition: create a new query from such a JSON file. RE validates the fields and values and flags anything that doesn't exist in this database (e.g. a constituent code that isn't set up) before saving.

API: an endpoint to create or update a saved query from the same JSON format, so queries can be built and maintained from Power Automate or scripts.

Benefits: reuse complex criteria as templates instead of rebuilding them; share queries between colleagues, or between a sandbox and the live database; keep track of how a query was defined (documentation, versioning); fewer errors from retyping long criteria lists.

Related ideas: "Merge or copy query criteria", "Copy and Paste Query Criteria", "Add an option to duplicate a query", "Create Reference for the Query_Field_IDs Accessible Via Query API".

  • Josef Stolz
  • Nov 11 2026
  • Attach files
  • anne dicker commented
    12 Nov 22:36

    We can do this in other programs like Omatic. This should be the standard.

  • Xochitl Nisbet commented
    11 Nov 23:14

    I fully support this idea, and I would add one more reason it matters.

    When you first start using an existing database, you often inherit queries that nobody documented. If query definitions could be exported as JSON, they could be the clues needed to investigate how things like constituent codes, campaigns, funds, appeals and packages are set up in that system. Query criteria show what the previous team cared about and how they structured their data, so an export would be a fast way to learn a database you did not build.

    I also work with Power Automate and the SKY API, so an import and export option in web view, plus an API endpoint to create or update saved queries from the same JSON format, would save a great deal of time. It would reduce retyping errors, let us reuse complex criteria as templates, document and version how a query was defined, and move queries between a sandbox and the live database. Validation on import that flags anything missing in the database, such as a constituent code that is not set up, would be a valuable safeguard before saving.

    I would also love to see this tied to the related ideas for duplicating a query, copying query criteria, and a reference for the Query API field IDs.

  • Austen Brown commented
    11 Nov 17:27

    I often download query JSON from RE NXT and use it in Power Automate to run ad hoc queries with dynamic criteria. Months later, when I need to change the criteria or output fields, I may no longer have the original query in RE NXT. I end up rebuilding it from memory and running it a few times to see if I’ve recreated it correctly.

    If I could upload the JSON to recreate the query in RE NXT, I could see the original criteria and output fields in the query builder, make my changes, and download the updated JSON for the flow. This would be an exceedingly better and more efficient process that the one I use now.

  • Susan Walters commented
    11 Nov 14:25

    I really like this idea. It seems like BB has great expectations that we'll all learn how to solve our own problems using the API, so we won't have to use support. This would be an excellent way to give us some copy/paste agency and make our lives better.