Complete steps

Complete steps in the app or using the API

Completing a form or decision step in the app

A form step is completed when you have finished all the form fields and click the Complete button under the form. That also applies to decision steps, where you select your decision and click Complete.

🚧

You can edit a completed step as long as the workflow instance is still in progress. However, if conditional steps follow, and they have already been completed, the updates to the form step won't affect the completed conmditions.

Completing an automated step

Those steps do not need your input and are completed automatically. If an automated step produces an error, the workflow technical lead is notified by email and can update and restart the step.

Completing steps using API

You can also use our API to complete steps.

Use the following information to structure your calls:

Field with a simple input form field

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "FORM_FIELD_ID":"FORM_FIELD_ID",
         "input_object":{
            "inputValue":"STRING"
         }
      }
   ]
}

Field with an address input

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{
               "city":"city",
               "street":"street",
               "zipCode":"zipCode"
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Field with a date input

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "date":"2021-06-16T10:00:00.000Z"
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Field with a checklist

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{
               "itemsChecked":[
                  "Option A", //enter only one value for single selection
                  "Option B"
               ],
               "itemsNotChecked":[
                  "Option B",//If you want to select multiple values and leave only few options unselected, specify the options to leave unchecked and the remaining options will be checked by default
                  "Option C"
               ]
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Field with radio button selection

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{
               "radioItemSelected":"Option A"
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Field with URL input

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "url":{
               "url":"http://nextmatter.com"
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Filed with email input

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{
               "emailValue":"[email protected]"
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Field with user selection dropdown

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{
               "selection":{
                  "user_email":"[email protected]"
               }
            }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Instruction

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "input_object":{
            "inputValue":{}//An instruction field doesn't require any input but still needs to be completed. That's why we recommend entering an empty input object.
         }
         },
         "action_id":"FORM_FIELD_1_ID"
      }
   ]
}

Decision step

{
   "step_id":"STEP_ID",
   "actions":[
      {
         "action_id":"FORM_FIELD_ID",
         "input_object":{
            "comment":"COMMENT",
            "decision":"return"//other options are: continue or decline
         }
      }
   ]
}