How to Retrigger a Transaction from the Application Select Action in Maximo

When working with IBM Maximo, there are times when transactions sent to an external system fail due to validation errors. In such cases, the external system may need the transaction to be resent after correcting the issue. Instead of manually reprocessing the data, we can add a "Re-send Transaction to External System" feature in Maximo's Select Action Menu to streamline this process.
In this blog, we'll walk through how to create this functionality using the Invoice Application as an example.
Step 1: Creating a Select Action in the Invoice Application
1.1 Navigate to the Application Designer
- Go to System Configuration > Platform Configuration > Application Designer
- Open the Invoice Application
1.2 Add a signature option
- Click on Select Action > Add/Modify Signature Options
- Click New Row and enter the following details:
- Option: XXX_RESENDTXN
- Description: Re-send Transaction to External System
- Under Advanced Signature Options, check “This action must be invoked from UI” (since we are writing an automation script to send data).
1.3 Add the action to menus
To make the action easily accessible, add it to the menus:
- Select action menu
- Go to add/modify select action menu
- Add the action
- Set position, subposition, and image
- Toolbar menu
- Go to add/modify toolbar menu
- Add the action with a suitable position, subposition, and icon
1.4 Verify the action in the invoice application
- Navigate to Purchasing > Invoices > Common Actions
- You should now see "ReTrigger Invoice" as an available action

Step 2: Creating an automation script for retriggering
Now that the action is set up, we need to write an Automation Script to execute the retrigger.
- Go to System Configuration > Platform Configuration > Automation Scripts
- Click Create > Script with Action Launchpoint
- Provide the following details:
- Script Name: Choose a relevant name
- Script Language: Select the appropriate scripting language
- Sig Option Name: Ensure it matches the action created earlier (XXX_RESENDTXN)


Step 3: Writing the Script to Retrigger the Transaction
Here’s a simple script that sends the transaction data back to the external system:
wcs = service.webclientsession()
wcs.showMessageBox("Trigger", "InvoiceRetrigger", None)

How the script works:
- Calls the external system
- Uses the publishchannel to export data
- Displays a confirmation message after execution

By following these steps, you have successfully added a Re-send Transaction feature to Maximo’s Invoice Application. This automation saves time and effort, allowing users to resend failed transactions with a simple click.
This feature enhances Maximo's capabilities and streamlines transaction management.