Skip to main content
Solved

How Can I Get All Cards From Phase


fonseca

Hi guys! Can you help me?

I’m trying to get all cards from a phase in a pipe using GraphQL API. But, I’m can not.

Can someone give a example how to get all cards from a phase?

I read other topic in the pipefy community about this question, but, it’s not functional the solution suggested to get all cards from a phase.

Tks!

Best answer by fonseca

Hi guys, I’m returning here to explain for you that I discovered how to get cards from a specific phase. Follow the code below:
 

query

{

    phase(id: XXXXXXXXX)

    {

        cards(first: 30, after: "XXXXXXXXXXXXXXXXX")

        {

            pageInfo

            {

                hasNextPage

                endCursor

            }

            nodes

            {    

                fields

                {

                    name

                    value

                }    

                done  

            }

        }

    }

}


In the argument “after” you have to put te code that is showed after the first query.

If someone need help, tell me!

Tks!
 

View original
Did this topic help you find an answer to your question?

4 replies

marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • March 8, 2024

fonseca
  • Author
  • New Member
  • 1 reply
  • Answer
  • March 10, 2024

Hi guys, I’m returning here to explain for you that I discovered how to get cards from a specific phase. Follow the code below:
 

query

{

    phase(id: XXXXXXXXX)

    {

        cards(first: 30, after: "XXXXXXXXXXXXXXXXX")

        {

            pageInfo

            {

                hasNextPage

                endCursor

            }

            nodes

            {    

                fields

                {

                    name

                    value

                }    

                done  

            }

        }

    }

}


In the argument “after” you have to put te code that is showed after the first query.

If someone need help, tell me!

Tks!
 


marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • March 11, 2024

👏👏👏


Lais Laudari

Thanks for sharing it @fonseca 😀


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