Actions137
- Entidade — Consultar Um (loadRecord) Actions
- Entidade — Consultar Vários (loadRecords) Actions
- Entidade — Salvar (DatasetSP.save) Actions
- Estoque (Gateway + REST) Actions
- Financeiro (REST) Actions
- Atualizar Despesa
- Atualizar Receita
- Baixar Despesa
- Baixar Receita
- Buscar Conta Bancária
- Buscar Moeda
- Buscar Tipo Pagamento
- Criar Despesa
- Criar Receita
- Listar Bandeiras TEF
- Listar Contas Bancárias
- Listar Cotações da Moeda
- Listar Despesas
- Listar Financeiros
- Listar Moedas
- Listar Receitas
- Listar Redes TEF
- Listar Tipos de Pagamento
- Fiscal — NF-e / NFC-e / SAT / NFS-e (REST) Actions
- Log de Alterações (Gateway) Actions
- Logística (REST) Actions
- Adicionar Pedido à Ordem
- Atualizar Motorista
- Atualizar Ordem de Carga
- Atualizar Transportadora
- Buscar Motorista
- Buscar Ordem de Carga
- Buscar Transportadora
- Criar Motorista
- Criar Transportadora
- Incluir Ordem de Carga
- Listar Motoristas
- Listar Ordens de Carga
- Listar Pedidos da Ordem
- Listar Transportadoras
- Remover Pedido da Ordem
- Movimentos / CACSP (Gateway) Actions
- Nota Fiscal (Gateway) Actions
- Parceiro (Gateway) Actions
- PDV — Ponto de Venda (REST) Actions
- Pedido (Gateway) Actions
- Pessoal — RH (REST) Actions
- Admitir Funcionário (v1)
- Admitir Funcionário (v2)
- Atualizar Recibos eSocial
- Buscar Cargo
- Buscar Departamento
- Buscar Empresa (Pessoal)
- Buscar Função
- Buscar Funcionário
- Buscar Funcionário × Empresa
- Buscar Histórico de Ocorrência
- Buscar Identificação de Carga Horária
- Buscar Local de Ponto
- Buscar Requisição de Admissão
- Buscar Sindicato
- Listar Afastamentos
- Listar Atrasos (Global)
- Listar Atrasos × Func/Emp
- Listar Carga Horária
- Listar Carga Horária Histórica
- Listar Carga Horária Histórica × Func/Emp
- Listar Cargos
- Listar Contratos
- Listar Departamentos
- Listar Dependentes
- Listar Empresas (Pessoal)
- Listar Faltas (Global)
- Listar Faltas × Func/Emp
- Listar Férias (Global)
- Listar Férias do Funcionário
- Listar Férias × Func/Emp
- Listar Financeiros do Funcionário
- Listar Funções
- Listar Funcionários (/v1/funcionarios)
- Listar Funcionários (/v1/pessoal)
- Listar Históricos de Ocorrência
- Listar Identificações de Carga Horária
- Listar Inconsistências
- Listar Locais de Ponto
- Listar Movimentos (Global)
- Listar Movimentos × Func/Emp
- Listar Ocorrências (Global)
- Listar Ocorrências × Func/Emp
- Listar Sindicatos
- Listar Tomadores (Global)
- Listar Tomadores × Func/Emp
- Produtos (REST) Actions
- Vendas — Pedidos REST (REST) Actions
- View (loadView) Actions
Movimentos / CACSP (Gateway) → Salvar Anexo
AI-generatedSummary
Upload and attach a file as an attachment to a specified record in the Sankhya system via the Gateway service.
Inputs
- pkEntity (required) — Primary key of the record to which the attachment will be linked (e.g., NUNOTA=1234).
- keySession (required) — Session key for authorization or identification in the Gateway service.
- nameEntity (required) — Internal name of the entity in Sankhya (e.g., CabecalhoNota).
- nameAttach (required) — Name of the attachment file to be saved.
- description — Description of the attachment, truncated to 20 characters for the Gateway call.
Output shape
a JSON object representing the Gateway service response for saving the attachment, indicating success or details of any error
The operation uses the 'AnexoSistemaSP.salvar' Gateway service. It requires a valid session (keySession) and entity information (pkEntity and nameEntity). The description is optional and limited to 20 characters in the request. The response is parsed and errors are thrown for HTTP errors or Gateway-level failures.
Examples
Example 1: Attach a document file to a transaction record
Provide the target record's primary key as 'pkEntity', the active session key as 'keySession', the record's entity name as 'nameEntity', the attachment file name as 'nameAttach', and optionally a short description.