Skip to main content
Solved

I can't connect the cards using the API


ops9
  • Regular Participant
  • 1 reply

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

 

Best answer by Nicole Chiroli

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:  

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

4 replies

Nicole Chiroli
Pipefy Staff
Forum|alt.badge.img+10
  • Product Manager
  • 301 replies
  • Answer
  • October 1, 2020

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:  


ops9
  • Author
  • Regular Participant
  • 1 reply
  • October 4, 2020
Hi @Nicole Chiroli, thanks, it worked!

tobiasbaco
  • New Member
  • 23 replies
  • January 11, 2022
Nicole Chiroli wrote:

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??


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • January 12, 2022

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!)


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