Skip to main content
Solved

How Can I Get All Cards From Phase

  • March 8, 2024
  • 4 replies
  • 298 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!
 

4 replies

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

fonseca
  • Author
  • New Member
  • 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
  • Legend
  • March 11, 2024

👏👏👏


Lais Laudari

Thanks for sharing it @fonseca 😀