Skip to main content
Solved

Updating Label Select Fields

  • February 2, 2021
  • 2 replies
  • 769 views

Hi, I'm trying to update fields in a card, no problem with texts and dates so far, however, I don't know how to change Label Select fields or Assign To fields. This is an example of what I've been trying:{
""query"": ""mutation{ updateCardField(input: {card_id: 25250812 field_id: \""priority\"" new_value: \""Medium\"" }){ card{ id } } }""
}Response doesn't throw an error, but the card is not updated.

 

Thanks in advance.

Best answer by Roberto Chavarria

Hi Amanda! Updating a label field requires you to send as an input an array containing the ids of the labels you want to set.

Here is an example of how you can get the IDs of your labels in the pipe using our IDE (https://app.pipefy.com/graphiql) :

{
  pipe(id:12345){
    labels {
      id
      name
    }
  }
}

 

And here is the mutation for how to update the Field Value of labels:
 

mutation{
  updateCardField(input:{
    card_id:25250812
    field_id:"priority"
    new_value:"MEDIUM_LABEL_ID"
  }) {
    clientMutationId
    success
  }
}

 

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

2 replies

Roberto Chavarria
Pipefy Staff
Forum|alt.badge.img+5

Hi Amanda! Updating a label field requires you to send as an input an array containing the ids of the labels you want to set.

Here is an example of how you can get the IDs of your labels in the pipe using our IDE (https://app.pipefy.com/graphiql) :

{
  pipe(id:12345){
    labels {
      id
      name
    }
  }
}

 

And here is the mutation for how to update the Field Value of labels:
 

mutation{
  updateCardField(input:{
    card_id:25250812
    field_id:"priority"
    new_value:"MEDIUM_LABEL_ID"
  }) {
    clientMutationId
    success
  }
}

 


dgodfrey
Forum|alt.badge.img+1
  • New Member
  • 27 replies
  • February 4, 2021

:thinking: Jorge aka Amanda? 


Reply


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