Skip to main content
Solved

How can I retrieve a PhaseField value?

  • January 26, 2023
  • 2 replies
  • 272 views

mattramo

Hi Pipefiers,

I am currently pulling data through the graphql api of Pipefy. However, I am struggling to retrieve the value of PhaseFields. 

Starting from a card, this is the nested structure I use Card > current_phase > fields (of type PhaseField)

 

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



I can retrieve index, options, id, etc… But I cannot identify the field corresponding the the value of the field. Has anyone faced this issue in the past and how did you retrieve the value of a PhaseField?

Thanks in advance

Best answer by mattramo

Solution: Turns out that once populated, the PhaseField also appears in the normal fields list of a card. 

Hope that helps anyone facing the problem in the future.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

mattramo
  • Author
  • Regular Participant
  • 1 reply
  • Answer
  • January 26, 2023

Solution: Turns out that once populated, the PhaseField also appears in the normal fields list of a card. 

Hope that helps anyone facing the problem in the future.


Lais Laudari

Hi @mattramo!

Thank you for sharing it with us! Im sure it will help.

See you!😃

 

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