I have a user action on the "Approved" state of a Lifecycle to "Download Formatted Output" and attach it to the record. I would like to automatically run this action to generate the formatted output when the record gets approved.
I've written an AFTER_UPDATE trigger using the Java SDK to:
- Check the state of the record
- On the approved state, execute the user action using the Object Record User Actions REST API
Unfortunately, this did not work. Any ideas on how this can be accomplished?