Skip to main content
Question

ow to Get Conditional Information for a Field in Pipefy?


edgar-silva-br
Forum|alt.badge.img

Hey everyone,

I'm currently working on a project using Pipefy and I need some guidance on how to retrieve conditional information associated with a field using the Pipefy API. Specifically, I'm looking to understand how to:

  1. Retrieve conditional rules or expressions set for a particular field.
  2. Determine if a field has any conditions attached to it programmatically.
  3. Access details such as when these conditions trigger or how they affect field behavior.

I've explored the Pipefy API documentation but couldn’t find a direct method to query this information. If anyone has experience or insights into how this can be achieved, I would greatly appreciate your advice or pointers.

Thank you in advance for your help!

4 replies

marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • July 3, 2024

Felipe Alves
Pipefy Staff
  • Enterprise Support Analytics
  • 27 replies
  • July 9, 2024

Hi @edgar-silva-br. How are you? 

I think this query might help you. 

x = Repo ID

query{
  pipe(id: x){
    fieldConditions{
      name
      id
      phase {
        name
        id
      }
      condition {
        expressions {
          id
          field_address
          operation
          value
        }
        expressions_structure
        id
      }
      actions{
        actionId
        whenEvaluator
        phaseField {
          label
          id
          internal_id
        }
        id
      }
    }
  }
}


If you have any questions, feel free to ask.


megann1092
  • New Member
  • 3 replies
  • July 10, 2024

Hey there,

I guess you should try  using the pipes or phases endpoints to get metadata and write custom logic to interpret conditions. Also, reach out to the Pipefy community or support for more insights. 


edgar-silva-br
Forum|alt.badge.img
marcosmelo wrote:

Hi Marcos,

Thanks for your response. I managed to retrieve the field conditionals within the phase, but since I am assembling the form dynamically, the phase hasn't been assigned yet at the point of filling in the form fields. I would need to look for the pipe object, but the condition object is not recognized in the fieldConditions hierarchy.


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