Solved

How can I retrieve a PhaseField value?

  • 26 January 2023
  • 2 replies
  • 146 views

Userlevel 2

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

icon

Best answer by mattramo 26 January 2023, 15:01

View original

This topic has been closed for comments

2 replies

Userlevel 2

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.

Userlevel 7
Badge +9

Hi @mattramo!

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

See you!😃