Skip to main content

Update select options in pipe

  • September 29, 2021
  • 3 replies
  • 89 views

davi-fontenele

I have a question field selection option and 100 option values (my clients).

How can send an update via API to change the values in the pipe so new cards have new options?

3 replies

genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • September 30, 2021

Is your question how you can set the options in an options field via GraphQL API?

An example query/mutation could look like this:

 

mutation {
    updatePhaseField(input: {
id: the_field_id,
label: "The field Label",
...
options: [
"Option 1", "Option 2", ...
]
}) {
        clientMutationId
    }
}

Note that there are a few placeholders you will have to replace for your specific case.

See also the documentation for this mutation.


davi-fontenele
  • Author
  • New Participant
  • 3 replies
  • October 1, 2021

yep!

I have an exiting pip, where do i declare its id?


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • October 1, 2021

Where you can declare the id of the pipe in this `updatePhaseField` mutation? The following post answers exactly that, better than I could:

https://community.pipefy.com/api-76/update-phasefield-using-graphql-api-how-do-i-specify-a-phase-989


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