Skip to main content
Solved

How can I retrieve a StatementField phasefield value


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

 

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

3 replies

Lucas Democh
Forum|alt.badge.img+15

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
  • 17 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

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.


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