Skip to main content
Solved

Create card with labes - using API

  • August 23, 2022
  • 1 reply
  • 430 views

fabiorosa
In the form there is the Label field with the value "test" as shown in the image below:

 

when I create GraphQL and pass the input label I can't register, here's the image:

 

 

 

Follow my configured form

 

 

Best answer by julia-pinheiro

Hi!

For fields of type "label", it is necessary to use the ID of the label and not the name of it, as you tried.

To find the ID of the label use the following query:

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

So, in your case it’d be:

{field_id: “label”, field_value: “ID FOUND”}

and for more than one label:

{field_id: “label”, field_value: [“ID FOUND1”,“ID FOUND2”]},

 

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

1 reply

julia-pinheiro
Pipefy Staff
Forum|alt.badge.img+1
  • Pipefy Staff
  • 39 replies
  • Answer
  • August 23, 2022

Hi!

For fields of type "label", it is necessary to use the ID of the label and not the name of it, as you tried.

To find the ID of the label use the following query:

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

So, in your case it’d be:

{field_id: “label”, field_value: “ID FOUND”}

and for more than one label:

{field_id: “label”, field_value: [“ID FOUND1”,“ID FOUND2”]},

 


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