This sample code contains a basic working Actions Task plugin and can serve as a starting point for your own plugin.
In fact you may only need to modify a few fields, create an authentication connection
, and your extension could be ready for submission!
The sections below contain a brief summary of the file and highlight key functionality.
This is the entrypoint to your plugin functionality.
client.onSave
=> This function enables you to provide a callback that gets invoked when the user clicks the save buttonfunction toggleSaveButtonState
=> This function toggles whether or not the user can save the form based on the logic you provide
This is where you place any specific styles to apply to your plugin-app.js React component.
It may make sense to combine all styles into a single file or you can create one for each React component.
This module is the controller for your form and is responsible for validating it and informing its parent component when it is valid.
This module contains your default form fields and handles validation logic.
This module handles all of the task definition logic
formatConnect
=> This function prepares and returns a connection object required for authenticating your outbound http requests
This module is optional and focuses on adding custom piped text options to the default ones provided.
Congrats and good luck building your Actions Task plugin!