Skip to main content
Solved

Add new start_form fields via api

  • November 17, 2020
  • 6 replies
  • 403 views


Is it possible to add start_form fields via the api?

Best answer by Nicole Chiroli

Hello @Amanda L., how are you doing?

It is :) You can use something like this:

mutation{
createPhaseField(input:{ 
phase_id:”id of the start form phase
  type: "type of the field"
      label: "label of the field"
      options: ["Yes", "No"] (if applicable)
      description: "description of the field"
      required: true  (if applicable)
      editable: false (if applicable)
    }
  ) {
    phase_field {
      id
      label
    }
  }
}

If you have any other questions let me know! :)
 

View original
Did this topic help you find an answer to your question?

6 replies

Nicole Chiroli
Pipefy Staff
Forum|alt.badge.img+10
  • Product Manager
  • 301 replies
  • Answer
  • November 17, 2020

Hello @Amanda L., how are you doing?

It is :) You can use something like this:

mutation{
createPhaseField(input:{ 
phase_id:”id of the start form phase
  type: "type of the field"
      label: "label of the field"
      options: ["Yes", "No"] (if applicable)
      description: "description of the field"
      required: true  (if applicable)
      editable: false (if applicable)
    }
  ) {
    phase_field {
      id
      label
    }
  }
}

If you have any other questions let me know! :)
 


jon71
  • New Participant
  • 3 replies
  • April 23, 2021

Hi @Nicole Chiroli,

 

Please can you clarify where to find the start form id?

 

thanks :)


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

@jon71you find the start form id in the URL bar in three steps as follows:

 

or, written out:

 

  1. 1. Edit any phase
  2. 2. Click on the “Start Form”
  3. 3. Choose any of the start form fields
  4. 4. Copy the phase id from the URL

ivan.novofoco
Forum|alt.badge.img+10
  • Pipefy Certified Partner
  • 136 replies
  • April 27, 2021

@Janaina_Barreto sobre o que conversamos hoje mais cedo. :point_up_2:


Alex Dowbor
  • New Member
  • 6 replies
  • April 19, 2022

Ola @Juliana Spinardi e @Nicole Chiroli - acho que isto deve ter mudado pois nao consigo acessar uma URL que mostre o phase id do start_form. Estou tentando fazer a criacao de campos no start_form via the GraphQL API para evitar o trabalho manual de criar 50 campos. Grato, Alex


Alex Dowbor
  • New Member
  • 6 replies
  • April 19, 2022

Managed to get the startFormPhaseId executing this graphql query (where xxx is the pipe id.


{
  pipe(id: XXXXXX) {
    startFormPhaseId
  }
}
 


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