Solved

I can't connect the cards using the API

  • 1 October 2020
  • 4 replies
  • 260 views

Userlevel 2
  • 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

 

icon

Best answer by Nicole Chiroli 1 October 2020, 23:42

View original

4 replies

Userlevel 7
Badge +10

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:  

Userlevel 2
Hi @Nicole Chiroli, thanks, it worked!
Userlevel 4

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

Userlevel 7
Badge +8

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

Reply