Skip to main content
Question

ow to Get Conditional Information for a Field in Pipefy?

  • July 3, 2024
  • 4 replies
  • 200 views

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
  • Legend
  • 1466 replies
  • July 3, 2024

Felipe Alves
Pipefy Staff
  • Enterprise Support Analytics
  • 33 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
  • Explorer
  • 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
  • Author
  • New Member
  • 1 reply
  • July 22, 2024

Hi, @edgar-silva-br 

 

See if this topic helps you.

https://community.pipefy.com/api-76/listing-field-conditions-actions-via-api-3528

 

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.