Build Custom Actions

From the Waffle menu, the Action Designer page allows an administrator to define custom actions for custom pages.

Configuring actions

Administrators can create custom buttons to trigger Python-based logic.

When creating a new custom action, the administrator must define:

  • a Name

  • a unique ID. All IDs are automatically prefixed with ac.. Once an action is saved, the ID is permanent and cannot be modified.

Upon saving, a dedicated configuration page is created for the action. From there, you can:

  • Add a Description: Provide context on what the action does.

  • Define the Python Script: Write the logic that powers the action.

The script placeholder includes helpful hints and code snippets for common tasks, such as:

  • Debugging: Utilizing logging within the script.

  • Context: Identifying the user or auth context that triggered the action.

  • Parameters: Retrieving parameters passed to the script.

  • Error Handling: Marking a script execution as “Failed” to prevent the action from completing.

  • Integration: Using the Public API within your logic.

See also

Examples are provided within the Developer Guide, visit this page.

Display actions in a custom page

To make action buttons visible and functional, an administrator must configure the Action Settings for the specific custom page from the Custom Page Designer.

Note

Note that this feature is not available in all Dataiku licenses. You may need to reach out to your Dataiku Account Manager or Customer Success Manager.