ThingWorx Flow > Creating and Managing Custom Actions > Managing Custom Actions in ThingWorx Flow
Managing Custom Actions in ThingWorx Flow
Using Custom Actions in a Workflow
With ThingWorx Flow 8.4.x, your custom actions are available under the Custom Actions group on the Custom tab in the Workflow Editor.
With ThingWorx Flow 8.5 and later, your custom actions are available under one of the following locations:
The Custom Actions group on the Custom tab in the Workflow Editor.
A custom group name that you added while creating the custom action. This custom group is available on the Services tab in the Workflow Editor.
The connector on the Services tab in the Workflow Editor, if you copied or inherited from an existing action and chose to display the custom action under the same connector
For example, if you selected an action under the Azure connector, then your custom action is available under Azure.
To use any custom action in a workflow, drag the action to the canvas. When you add a custom action to the workflow, a copy of the action is added to the workflow. If you edit or delete the custom action from the ThingWorx Flow Settings page, it does not affect any custom action that is added to the workflow.
Editing Custom Actions
When you edit a custom action, any workflows that are using the action are not updated automatically. If you want to use the edited custom action, add the action to the workflow. Use one of the following ways to edit custom actions:
* 
You can edit custom actions created in ThingWorx Flow 8.5 from the ThingWorx Flow Settings Page only.
From the ThingWorx Flow Settings Page
Edit your custom action from the ThingWorx Flow Settings page. For more information, see Edit Custom Actions on the ThingWorx Flow Settings page.
* 
For custom actions created with ThingWorx Flow 8.5 and later, when you edit a custom action, the this.localization.namespace attribute is replaced by the actual value in the code. If you want to add a new field to the action, you can either use the this.localization.namespace attribute or the actual value.
From the Workflow (ThingWorx Flow 8.4.x only)
With ThingWorx Flow 8.4.x, you can edit custom actions from the workflow where you added the custom action. Editing a custom action in the workflow does not affect its use in any other workflows. To edit a custom action in the workflow, do the following:
1. Place the pointer on your custom action, and click or double-click your custom action icon.
2. Click EDIT ACTION. The code editor appears where you can make your updates. Perform one of the following actions:
Make the required updates, and click Compile to compile the code, and preview the changes in the left pane.
To revert any changes that you made in the code, click Revert.
To dismiss the code editor, click Hide.
3. After you make the required changes, click Done. A prompt appears that indicates that the changes are applicable only for the custom action in this workflow. Click YES to save the changes.
Deleting a Custom Action in ThingWorx Flow
When you delete a custom action, any workflows that are using the action continue to work. However, you cannot add that custom action to any other workflow. Use one of the following ways to delete custom actions:
From the ThingWorx Flow Settings Page
You can delete custom actions that are available on the Services tab in the Workflow Editor from the ThingWorx Flow Settings page. For more information, see Deleting Custom Actions on the ThingWorx Flow Settings page.
From the Workflow Editor
You can delete any custom actions that are available under the Custom Actions group on the Custom tab in the Workflow Editor. To delete a custom action, click . When prompted for confirmation, click DELETE to delete the custom action from ThingWorx Flow.
Was this helpful?