Views: saved searches
How to save a search as a view on CNPJá, apply it again with current results, share it with your organization and when a list fits better.
A view keeps the search term and filters of a CNPJ search so you can apply them again in one click, always with the results of that moment. Views sit in the sidebar of the CNPJ app, in the Views group, and belong to the organization: every member sees the same ones.
View or list?
A view keeps the question; a list keeps the answers of one moment. That is why the app calls a view Dynamic and a list Static, in the save dialogs and on the Views and Lists pages. In the sidebar, the help icon next to each group’s name recalls the difference.
| View | List | |
|---|---|---|
| What it keeps | The search term and filters | The establishments themselves |
| Results | Follow the registry: whatever starts matching the filters comes in, whatever stops matching leaves | Only change when you add or remove CNPJs |
| How it is created | From a search with a term or a filter, through Save as view or by exporting it with Also save as a view ticked | From a search, pasted CNPJs or a file, and also with every export of a search or a view |
| Export | Saves the search on screen as a new list and exports that list. The page moves to the list, unless the view has unsaved changes | Exports the list itself or, when a search or a filter on screen leaves part of it out, asks first what to export |
| Good for | Repeating a prospecting search, following new openings in a region or activity | Keeping a customer portfolio or a closed batch, and using it in the List filter |
The two combine: a view can use the List filter to search only among a list’s CNPJs, or to leave them out. Lists are covered in What a list is.
A view keeps the values exactly as they stand in the page address. A date preset, such as Today, is stored with the dates of the day it was applied and does not move forward on its own, as Date presets explains.
Save a view
Only members of an organization save views.
- In CNPJ > Search CNPJ, apply a search term or at least one filter.
- Click Save as view, at the top of the page (on smaller screens, only the icon shows).
- In the Save view dialog, check the term and filters the view will keep.
- Type a Name, such as “Active companies in São Paulo”.
- Click Save.
The app shows “View Active companies in São Paulo saved.” and opens the new view’s page, which now appears in the sidebar. The view keeps the search term and the filter values, but not the results page or the choice of filters on your bar, which belongs to this browser.
With no term and no filter, the Save as view button is disabled, with the note Apply a search or a filter to save a view. Without an account or an organization, it shows with a lock, as Guests, accounts and organizations explains.
When you export a search, you can also save it as a view, under the list’s name, by ticking Also save as a view in the Confirm step (unticked by default and not offered on a view’s page); the view is saved along with the list when you click Export, and the page then moves to the new list, not to the view.
Open and change
The sidebar’s Views group shows up to five views: first the ones you opened last in this browser, then the ones the organization changed most recently. View all, with the count next to it, opens the full list.
Click a view to open its page, with the saved term and filters already applied. The page address carries the search, so you can send the link to another member of the organization. The top of the page offers Save as list and Export.
To change a view:
- Change the search term or the filters on the view’s page, as you would in the search.
- Click Unsaved changes, at the top of the page, to see What changed: the Search and each filter, with the values added (+) and removed (−) compared with what is saved. On smaller screens, only the amber dot shows.
- Choose what to do with the changes:
- Discard goes back to what is saved;
- Save as view creates a new view with what is on screen, leaving the original untouched;
- Save overwrites the view, as the next section explains.
With unsaved changes, Save as list and Export stay at the top and act strictly on what is on screen, even if the view does not keep that search. So the changes are not lost, the page does not change: a notice confirms that the list was saved or that the export started, with Open list to go to it, and the new list already shows in the sidebar, as Export to a spreadsheet explains. With no changes, the page moves to the new list.
Moving to another results page or changing another filter does not lose the changes, which live in the address. When you leave for another page, the app asks Discard unsaved changes?: Keep editing stays on the view, and Discard changes leaves without saving. When you close the tab or reload the page, the warning is the browser’s own.
Overwrite for the whole organization
Save replaces the saved term and filters with the ones on screen, for every member of the organization.
- Change the search term or the filters on the view’s page.
- Click Save, at the top of the page.
- In the confirmation dialog, such as “Overwrite Active companies in São Paulo?”, check the list of what changes.
- Click Overwrite.
The app shows “View Active companies in São Paulo updated.” and keeps the view’s name.
Important: overwriting applies to every member, and the app keeps no earlier version. To experiment without touching what others use, use Save as view and create a new view.
Rename and delete
Views are renamed and deleted on the Views page, which opens from View all, in the sidebar’s Views group. The page lists every view of the organization, with the Name, Filters and Updated columns, and a Search views box that looks up names, ignoring accents and capitals. On narrow screens, the number of filters shows under the name. To create a view, click Go to search.
To rename:
- On the view’s row, click Rename view (the pencil icon).
- Check the Current name and type the new one in Name.
- Click Rename.
To delete:
- On the view’s row, click Delete view (the trash icon).
- In the Delete this view? dialog, check the name and the number of filters.
- Click Delete view.
Important: deleting a view cannot be undone. The search term and filters it keeps are no longer saved for any member. Lists and establishments are not affected.
Who sees and who changes
Views belong to the selected organization. Every member sees all of its views, whatever their role: Owner, Administrator, Developer, Bookkeeper or Member. Any member can also save, overwrite, rename and delete views, regardless of role.
- Without an account, or with an account but no organization, there are no views: the sidebar does not show the group, and the Views page sends people who are not logged in back to the search.
- When you switch organizations, you see the other organization’s views.
- The order of recent views in the sidebar is remembered by this browser, as Data stored in your browser explains.
Limits
Each organization can keep a limited number of views; the current limit is in Usage limits.
Common problems
| Problem | What to do |
|---|---|
| Save as view is disabled | Apply a search term or at least one filter. The note reads Apply a search or a filter to save a view |
| Enter a name for this view. | Type a name before clicking Save |
| The message starts with The organization reached its limit | Delete the views the organization no longer uses, in View all. If it showed up while exporting, with Also save as a view ticked, only the view was not saved: the list was saved and the export goes on |
| This search has too many filters to be saved as a view. Remove some and try again. | The search and the filters exceed what a view can hold. Remove some filter values and save again |
| We couldn’t save this view. Please try again. | Try again in a moment. If the error persists, contact us |
| View not found | It may have been deleted or belong to another organization, or the link was opened without logging in. Log in, check the selected organization or ask whoever sent the link for it again |
| The views did not respond | The Views page could not read the list. Click Try again in a moment |
| The results changed since yesterday | That is expected: the view follows the registry. To keep today’s establishments, use Save as list |
| After Save as list or Export, the page did not change | The view had unsaved changes, and you stay on it so they are not lost. The list was saved with what was on screen: click Open list, in the notice, or open the list from the sidebar |
| A period, such as Today, stayed on the day the view was saved | Date presets store fixed dates. Apply the preset again and click Save to overwrite |
| The view changed without you touching it | Another member overwrote or renamed it. Views belong to the whole organization |