Request collections
A collection is a folder of requests. Each request is a .dnml file that runs in the app and in the CLI.
You can keep a collection in Git. Request collections are included in the trial and in Professional and Enterprise. With Community or Indie access, request tabs open locked.
Collection layout
orders/├── collection.dnml├── find-and-update-order.dnml├── archive-old-orders.dnml└── environments/ ├── local.json └── staging.json collection.dnmlmarks the folder as a DNML collection. See Collection marker.- Each request is a
<name>.dnmlfile in the collection folder, not in a subfolder. - The request
namemust be the filename without the extension, and cannot becollection. See Naming rules. - Collection environments are JSON files in
environments/. See Variables and environments.
Create a collection
- In Request Collections, select New collection, the + button.
- Enter a Collection name.
- Enter the parent Directory, or select Browse folders.
- Select Create collection.
Dynomate creates the folder with collection.dnml and watches the parent directory for changes.
A collection or request name must not be empty or end with a period. It must not contain /, \, :, *, ?, ", <, >, |, or control characters.
Open an existing collection
- In Request Collections, select Open collection, the folder button.
- Select the folder that contains
collection.dnml.
The sidebar also shows the other collections in the parent folder. Migrate a legacy collection before you open its requests. See Migrate legacy collections.
Browse a collection
- Select a collection to show its requests. Select a request to open it in a tab.
- To open a saved request from anywhere, use Global Search.
- An issue count, for example 2 issues, shows next to a collection with problem files.
- To open the folder, right-click the collection and select Reveal in Finder.
- To check the folders for changes, select Refresh collections.
Create a request
- Expand a collection.
- Select New request.
- Enter a Request name.
- Select Create request.
The request opens as a draft. Dynomate creates the file when you save.
To save a table query as a request:
- In the query panel, select Save to collection.
- Select a Collection, or select Create collection.
- Enter a Request name.
- Select Save request.
Dynomate opens a request with one Query operation. See Build a request.
Save, rename, and delete
- Save or Cmd/Ctrl + S writes the full request to its file. Until then, the header shows Unsaved.
- To rename a request and its file, select the name in the header.
- Request actions, the … button, shows the file location.
- You do not have to save before you run.
- If you close a tab with unsaved changes, select Save, Discard, or Cancel. You cannot close a request while it runs.
To delete a saved request:
- Select Request actions.
- Select Delete request.
- Select Delete permanently. Dynomate deletes the file from disk. You cannot undo this.
Invalid files
- A request with values that are not valid opens, and the fields show their errors.
- Dynomate keeps unknown keys and lists them under Unrecognized fields. Remove them to repair the request.
- A file with TOML errors, an unknown operation type, or a structure that the editor cannot show appears as a diagnostic.
To repair a file that has a diagnostic:
- Select Reveal file.
- Correct the file in a text editor.
- Select Refresh collections.