Skip to main content
Solved

Clone Cards on the same Pipe

  • December 15, 2020
  • 6 replies
  • 1069 views

Lucas Democh
Forum|alt.badge.img+15
Is there any way to clone / duplicate a specific card via graphql?

Best answer by lais_lot

Hey Lucas :)

You can do this action with this query

mutation{

  clonePipes(input:{

   pipe_template_ids: 123465

   organization_id: 123456

  }){

    pipes{

      id

      name

    }

  }

}

 

You need to put the organization that will be the destination of this clone and the id of the pipe you want to clone

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

6 replies

lais_lot
Pipefy Staff
  • Pipefy Staff
  • 16 replies
  • Answer
  • December 15, 2020

Hey Lucas :)

You can do this action with this query

mutation{

  clonePipes(input:{

   pipe_template_ids: 123465

   organization_id: 123456

  }){

    pipes{

      id

      name

    }

  }

}

 

You need to put the organization that will be the destination of this clone and the id of the pipe you want to clone


Lucas Democh
Forum|alt.badge.img+15
  • Author
  • Pipefy Legend
  • 396 replies
  • December 17, 2020

 

Hi,

As I understand it, this function duplicates a Pipe.

 

 

I need to clone only one card inside the same Pipe.


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • December 19, 2020

There is a way, sure:

Use the createCard mutation after using the card query and just fill all the fields with the same values you got. You may have to also use the moveCardToPhase mutation if your clone should also be in the correct phase.

Btw., the way to do it with Pipefy’s automations: have a connected card field (“parent card” or something). Then, use automations upon creation of the card, (a) to fill all the values based on the values found in the parent card, and (b) move the card e.g. upon change of field as soon as all are filled & parent card filled too.


lais_lot
Pipefy Staff
  • Pipefy Staff
  • 16 replies
  • December 22, 2020

Hi @Lucas Democh , there is no way to do this directly through graphql.

What is possible is to take the card in question, save the values and create a card with them, or make a pipe connection, it with itself, by autofill and create manually or via automation. Like @genietim said :wink:


Lucas Democh
Forum|alt.badge.img+15
  • Author
  • Pipefy Legend
  • 396 replies
  • September 6, 2024

Hello, I have some news.

I created a "power-ups" App to clone cards in Pipefy. If anyone is interested in implementing it, please contact me.


Lucas Democh
Forum|alt.badge.img+15
  • Author
  • Pipefy Legend
  • 396 replies
  • September 6, 2024

 


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