Skip to main content
Solved

How Can I Get All Cards From Phase

  • Mar 8, 2024 1:20 PM UTC
  • 4 replies
  • 451 views

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

4 replies

marcosmelo
Forum|alt.badge.img+18
  • Legend
  • Mar 8, 2024 2:47 PM UTC

fonseca
  • Author
  • New Member
  • Answer
  • Mar 10, 2024 5:46 PM UTC

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
  • Legend
  • Mar 11, 2024 1:04 PM UTC

👏👏👏


Lais Laudari

Thanks for sharing it @fonseca 😀