> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios/criar-um-relatorio.md). Agents can also search and read this documentation through its [MCP server](https://knowledge.out-smart.com/~gitbook/mcp).

# Criar um relatório

Criar um relatório, selecionando uma entidade, colunas, critérios e ordenação.

## Introdução

Este é o fluxo básico para criar um relatório de raiz.

## Explicação detalhada

Um relatório começa com um **nome** e uma **entidade principal**. A entidade define o tema do relatório. Em seguida, adicionam-se colunas, critérios opcionais e ordenação.

## Guia passo a passo

{% stepper %}
{% step %}

### Abrir o editor de relatórios

Aceder a **Relatórios** e selecionar **Criar relatório**.
{% endstep %}

{% step %}

### Dar um nome ao relatório

Introduzir um **nome**. A descrição e o nome do ficheiro são opcionais.
{% endstep %}

{% step %}

### Escolher a entidade principal

Selecionar o tema principal, como **Ordens de trabalho**, **Horas**, ou **Faturas**.

Adicionar uma **entidade secundária** se forem necessários dados relacionados. Por exemplo, adicionar horas às ordens de trabalho.
{% endstep %}

{% step %}

### Adicionar colunas

Selecionar as colunas a apresentar. É possível pesquisar, adicionar várias de uma só vez e arrastá-las para as ordenar.
{% endstep %}

{% step %}

### Definir os critérios (opcional)

Abrir o editor de critérios para limitar os registos apresentados. Consultar [Configurar os critérios do relatório](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios/configurar-os-criterios-do-relatorio.md).
{% endstep %}

{% step %}

### Definir a ordenação

Escolher uma coluna e a direção da ordenação. A ordenação secundária é opcional.
{% endstep %}

{% step %}

### Pré-visualizar e guardar

Utilizar **Pré-visualizar** para verificar o resultado. Selecionar **Guardar**, e depois utilizar **Transferir** para exportar um ficheiro Excel.
{% endstep %}
{% endstepper %}

## Perguntas frequentes

<details>

<summary>É possível duplicar um relatório em vez de começar de raiz?</summary>

Sim. Utilizar **Duplicar** para copiar um relatório existente. É possível ajustar a cópia sem alterar o original.

</details>

<details>

<summary>Onde ficam os relatórios guardados?</summary>

Ficam na **Relatórios** Visão Geral. É possível reabri-los, editá-los e transferi-los a qualquer momento.

</details>

<details>

<summary>É possível recuperar um relatório eliminado?</summary>

Não. **Eliminar** remove imediatamente o relatório guardado. O OutSmart não guarda uma cópia que possa ser restaurada a partir da Visão Geral de Relatórios.

Os snapshots guardados desse relatório e o registo de envios também são removidos. As Ordens de trabalho, as Horas, as Faturas e os outros registos utilizados pelo relatório permanecem no OutSmart. Um ficheiro Excel já transferido permanece no computador.

**Duplicar** só funciona enquanto o relatório ainda estiver na visão geral. Para substituir um relatório removido, é necessário criá-lo novamente. Consulte [Relatórios removidos](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios.md#deleted-reports).

</details>

## Referências

* [Configurar critérios do relatório](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios/configurar-os-criterios-do-relatorio.md)
* [Escolher e organizar colunas do relatório](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios/selecionar-e-organizar-as-colunas-do-relatorio.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/backoffice/backoffice/relatorios/criar-um-relatorio.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
