Skip to main content

Hello, I'm using a PipefyAPI - GraphQL to create a card, but I can't connect the card with other cards from another pipe. I tried to use updateFieldsValues, but I always get the error message "Value You are not allowed to connect these cards / table records.".

OBS: I would like to connect the cards that way

 

Hello @ops9. How are you doing today?

You can update it like this:
mutation{
 a1: updateCardField(input:{card_id:"12345" field_id:"slug ID" new_value: "id of the connected card"})
}

 

To find the field_id you can use this query over here:
{
 card(id:12345){
   fields{
     field{
       id
       label
     }
     value
   }
 }
}


Let me know if it helps! :wink:  


Is there any way of cancelling the connection between 2 cards using a GraphQL query??

 

Just the same, but as a “new_value”, you set empty (not sure if `null` or “”, try it!)


Hi @Nicole Chiroli, thanks, it worked!

Hello @ops9. How are you doing today?

You can update it like this:
mutation{
 a1: updateCardField(input:{card_id:"12345" field_id:"slug ID" new_value: "id of the connected card"})
}

 

To find the field_id you can use this query over here:
{
 card(id:12345){
   fields{
     field{
       id
       label
     }
     value
   }
 }
}


Let me know if it helps! :wink:  

Hi! How are you? Is there any way of cancelling the connection between 2 cards using a GraphQL query??


Reply