Actions59
- Acesso - Credenciais
- Canais - Listar
- Contato - Adicionar Etiqueta
- Contato - Adicionar Informações
- Contato - Consultar
- Contato - Editar Perfil
- Contato - Encaminhar
- Contato - Importar
- Contato - Importar - Lote
- Contato - Listar Protocolos
- Contato - Listar Todos
- Contato - Mensagem - Enviar
- Contato - Mensagem - Enviar Imagem + Legenda
- Contato - Pesquisar
- Contato - Remover Etiqueta
- Contato - Status De WhatsApp
- Etiquetas - Listar Todos
- Extra - Cep - Pesquisar
- Extra - Cnpj - Pesquisar
- Extra - Coordenadas - Pesquisar
- Extra - Cpf - Pesquisar
- Extra - CSV/TSV - Formatar
- Extra - Nome - Pesquisar
- Extra - Titularidade - Pesquisar
- Extra - Transcrição - Documentos
- Extra - Transcrição - Imagem EN
- Extra - Transcrição - Imagem PT
- Grupos - Adicionar Contato
- Grupos - Listar Contatos
- Grupos - Listar Todos
- Grupos - Remover Contato
- Grupos - WhatsApp - Histórico
- Grupos - WhatsApp - Listar
- Grupos - WhatsApp - Membros
- Marketing - Campanha - Listar
- Marketing - Campanha - Resumo
- Marketing - Mensagem - Enviar
- Marketing - Mensagem - Listar
- Marketing - Mensagem - Status
- Produto - Categoria - Listar
- Produto - Listar
- Protocolo - Consultar
- Protocolo - Encaminhar - Recado
- Protocolo - Finalizar
- Protocolo - Listar - Todos
- Protocolo - Mensagem - Enviar
- Protocolo - Mensagem - Listar
- Protocolo - Observações - Adicionar
- Protocolo - Observações - Listar
- Protocolo - Pesquisar
- Recados - Listar - Todos
- Recados - Pesquisar
- Setor - Listar - Todos
- Templates - Listar - Todos
- Usuário - Agenda - Listar
- Usuário - Carteira - Adicionar
- Usuário - Carteira - Listar
- Usuário - Carteira - Remover
- Usuário - Listar - Todos
Overview
This node integrates with a WhatsApp-based customer relationship platform called SacNews. It provides various operations to interact with the platform, such as managing contacts, protocols, groups, marketing campaigns, and more.
Specifically, the "Setor - Listar - Todos" operation lists all available sectors (departments) in the WhatsApp relationship platform. This is useful for scenarios where you want to retrieve and display or process all sectors configured in your platform, for example, to route messages, assign contacts, or generate reports based on sector data.
Practical examples:
- Automatically fetching all sectors to populate a dropdown menu in a workflow.
- Synchronizing sector information with another system.
- Auditing or monitoring sector configurations.
Properties
| Name | Meaning |
|---|---|
| Listar Todos Os Setores De Relacionamento | A notice property indicating that this operation will list all sectors available in the WhatsApp relationship platform. |
(Note: The only input property for this operation is a notice informing users about the action; no configurable inputs are required.)
Output
The node outputs JSON data representing the list of all sectors retrieved from the platform. Each item in the output array corresponds to a sector with its associated details as provided by the platform's API.
The exact structure of each sector object depends on the platform but typically includes identifiers, names, and possibly other metadata related to each sector.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the SacNews WhatsApp relationship platform.
- The node depends on internal action methods imported from
./actionswhich handle the actual API calls. - Proper configuration of the API authentication within n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Authentication failures due to missing or invalid API credentials.
- Network connectivity problems preventing access to the platform's API.
- Unexpected empty results if no sectors are configured in the platform.
Error messages:
- Errors related to authorization usually indicate incorrect or expired API keys; verify and update credentials.
- Timeout or connection errors suggest network issues; check internet connectivity and firewall settings.
- If the output is empty or malformed, confirm that sectors exist in the platform and that the API endpoint is functioning correctly.
Links and References
- SacNews Platform Documentation (Replace with actual URL if available)
- n8n documentation on Creating Custom Nodes
- General API integration best practices in n8n workflows