Skip to main content
Solved

How can I retrieve a StatementField phasefield value

  • May 1, 2023
  • 3 replies
  • 263 views

karoline-impulseodonto
Forum|alt.badge.img

I've found that answer about retrieving phase field values:

 

Unfortunately, it seems that StatementFields are not included in the in the normal fields list of a card. How can I retrieve the value of a StatementField?

Best answer by diogo.pessoa

Hello Karoline,

StatementField does not have content in them, they are just references to other fields, you can see the reference of those fields by the description, as I show below:

 

 

The query to bring up those info is:

 

{
card(id: "666341506") {
id
title
pipe {
id
name
}
fields {
field {
id
description
}
}
current_phase {
fields {
index_name
index
id
label
description
internal_id
type
options
custom_validation
help
phase {
name
}
}
}
}
}

 

3 replies

Lucas Democh
Forum|alt.badge.img+15
  • Legend
  • 396 replies
  • May 2, 2023

Unfortunately, it is not possible to get the comments data via API. Alternatively, you can create a text field where users can enter their comments. The risk of this field's existence is that it is editable.


diogo.pessoa
Pipefy Staff
  • Pipefy Staff
  • 18 replies
  • Answer
  • May 2, 2023

Hello Karoline,

StatementField does not have content in them, they are just references to other fields, you can see the reference of those fields by the description, as I show below:

 

 

The query to bring up those info is:

 

{
card(id: "666341506") {
id
title
pipe {
id
name
}
fields {
field {
id
description
}
}
current_phase {
fields {
index_name
index
id
label
description
internal_id
type
options
custom_validation
help
phase {
name
}
}
}
}
}

 


Lucas Democh
Forum|alt.badge.img+15
  • Legend
  • 396 replies
  • May 2, 2023

I'm sorry I confused the concept of statemant with comment.

But as mentioned in the previous comment, the Statement is a field with fixed content.

Typically, the Statement ID is the content itself.

This changes if the Statement changes.