Hi All, I've been running into a wall trying to get a fusion scenario to trigger that is aimed at task approval processes. Is suppose to trigger when the decision to an approval is made, but I can't even get the trigger to fire. Any ideas on how to get by this first hurdle?
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@OmahaOmaha can you provide context?
What's the approval path?
How is your event listener configured?
Views
Replies
Total Likes
@Sven-iX I've really dumb it down at this point, the trigger is looking for any approval process associated with a task, and the approval is rejected.
Views
Replies
Total Likes
the trigger uses a watch events module.
Views
Replies
Total Likes
I don't believe there is a specific tag added to a task when the approval is rejected (at least not in the supported API). Interestingly enough though, when an approval is rejected, it adds a date stamp to the 'approvalCompletionDate' field. You could adjust your filters to include only tasks where the approvalCompletionDate is not empty.
The second part to get this to work right would be to add a 'Rejected' status for tasks, and adjust your approval process to revert the task to 'Rejected' status if the approval is rejected. You'll then just want to filter for tasks where the approvalCompletionDate is not empty, and are in the 'Rejected' status.
Also, as a side note, if you re-trigger the approval process, it will strip out the approvalCompletionDate data until the new approval is complete.
@MyNameIsMike these are some great ideas, unfortunately 'approvalCompletionDate' field doesn't populate in fusion as an events filter option. going to give the custom task status "Rejected" a go and see if that works.
Views
Replies
Total Likes
I was able to get it to work by triggering off of the task status change and filtering for Task Name, oldstate status = CPL:A, and newState Status = NEW. my final piece of the puzzle is figuring out where I can grab the approvers ID.
Views
Replies
Total Likes
@MyNameIsMike Just checking in — were you able to resolve your issue? We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes