Skip to main content
Solved

findCars query doesn't work on specific pipe


gabrielasil

Hello everybody. I’m currently having an issue where on a specific pipe, the findCards query returns an empty array of edges, no matter what fieldId and fieldValue I try to use. I don’t think my query is wrong because it returns an error when I pass an invalid fieldId and also it works on a different pipe. Anyone has any idea if I’m missing some pipe configuration or something like that? 
If it’s important, i’m using Postman to make the requests.

 

query($search: FindCards!, $pipeId: ID!){
  findCards(pipeId: $pipeId, search: $search) {
    edges {
      node {
        id, title, fields {name, value}
      }
    }
  pageInfo {
    endCursor
    startCursor
  }}
}

(GraphQL Variables):

{
    "search": {"fieldId":"field_id", "fieldValue":"field_value"}, 
    "pipeId": "pipe_id"
}

 

Best answer by gabrielasil

Update: I figured out what happened. I was using a token of a user that wasn't on the pipe I've created, but somehow I was able to create cards via API with that user token, so I didn't even thought that was the issue.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

gabrielasil
  • Author
  • Regular Participant
  • 1 reply
  • Answer
  • August 25, 2022

Update: I figured out what happened. I was using a token of a user that wasn't on the pipe I've created, but somehow I was able to create cards via API with that user token, so I didn't even thought that was the issue.


Juliana Spinardi
Pipefy Staff
Forum|alt.badge.img+8

@gabrielasil great!! So, you solved the issue, right?


Lais Laudari

Hi I haven't heard back from you in a while, so I assume you solved it!😀
See you!
 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings