Delete Form
Delete a form or several forms. Be careful when using this — a deleted form cannot be recovered!
Inputs
Note that while each individual input below is optional, at least one is required. You must have either formId
or formId#
as an input. You can have both, but you cannot have neither.
Input | Value | |
---|---|---|
formId | Optional | If you want to delete a single form, use this input. It is the unique 32-digit hexadecimal identifier of the form that you want to delete. See here for more details. |
formId# | Optional | If you want to delete more than one form, use these inputs. They should be numbered starting with 1, i.e. formId1 , formId2 , formId3 , etc. Each one should contain the unique 32-digit hexadecimal identifier of the form that you want to delete. See here for more details. |
Outputs
None
Usage
There are a number of workflows where deleting a form may come in useful. For instance, you may want to maintain a one-to-one relationship between Salesforce Work Order objects and its related forms in GoFormz, driven by Salesforce. To do so, you would use a pair of workflows:
- Create new GoFormz forms whenever a new Salesforce Work Order object is created, and store the new forms' IDs to the Salesforce object.
- Whenever a Salesforce Work Order is deleted, also delete its corresponding GoFormz forms.
The second workflow will use a Salesforce Webhook trigger activated by a Work Order object's deletion, followed by a Salesforce Lookup action to get the associated forms' IDs, and finally the Delete Form action to delete the forms. The Delete Form step of this workflow is shown below:
In this example, we delete three forms — a Work Order form, an Inspection Checklist form, and a Purchase Order form. The form IDs necessary for deletion are derived from the Lookup step.
Updated over 5 years ago