Solved

How Can I Get All Cards From Phase

  • 8 March 2024
  • 4 replies
  • 41 views

Userlevel 1

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!

icon

Best answer by fonseca 10 March 2024, 18:46

View original

4 replies

Userlevel 7
Badge +18

Hi, @fonseca 

 

Did you see this article?

https://community.pipefy.com/pergunte-a-comunidade-38/filtro-de-cards-em-uma-determinada-fase-via-request-na-api-1615

 

Userlevel 1

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!
 

Userlevel 7
Badge +18

👏👏👏

Userlevel 7

Thanks for sharing it @fonseca 😀

Reply