Skip to main content
Question

Buscar card especifico no n8n

  • August 20, 2025
  • 1 reply
  • 96 views

dtanci

Boa tarde, estou querendo buscar um card especifico pelo campo cpf do card mas sem sucesso até agora.

Requisição POST
url: https://api.pipefy.com/graphql

body:

{
"query": "query { allCards(pipeId: id_pipe, filter: {field: \"cpf_proponente\", operator: equal, value: \"cpf_da_busca\"}) { edges { node { id title createdAt fields { name value } } } } }"
}


erro retornado:

[
  {
    "data": {
      "allCards": null
    },
    "errors": [
      {
        "message": "Algo deu errado",
        "locations": [
          {
            "line": 1,
            "column": 9
          }
        ],
        "path": [
          "allCards"
        ],
        "extensions": {
          "code": "INTERNAL_SERVER_ERROR",
          "correlation_id": "97241d9fbb55d0c0-CDG"
        }
      }
    ]
  }
]

 

1 reply

Diogenes Fiorezi
Pipefy Staff

Hey ​@dtanci 

For this purpose you can use the findCards query:

{
findCards(
pipeId: pipe_id
search: {fieldId: "cpf_proponente", fieldValue: "cpf_value"}
) {
edges {
node {
id
title
createdAt
fields {
name
value
}
}
}
}
}

This should work as you’re expecting.

 

It is worth mentioning that the CPF must contain the dots and hyphen: 123.456.789-01 instead of just 12345678901

 

Hope it helps 😄