How to Re-Queue programmatically.
From the agent activity, we are hitting a external service and based on the response need to re-queue the agent activity by considering maximum number of attempts.
For Ex: Max No of attempts = 1
Failed Response for the first time: Re-Queue with "Scheduled" Status.
Failed Response second time: Re-Queue with "Broken-Process" Status.
On failure response tried setting page messages still no luck.
Thanks in advance.
***Updated by moderator: Marissa. Removed user added #helpme tag. Apologies for confusion, shouldn't have been an end-user option***