I found the solution to create this workflow for retry requests with errors
here the solution:
I created my workflow with those trigger and actions,
Basically i used to search my specific error with this filter directly on trigger:
$.errors[?(@ =~ /.(group membership operation|could not acquire lock|timeout)./i)]
After this i put a wait, because sometimes the request became empty, so the wait solve this problem.
After this i search my trackingnumber that is returned on the trigger, i use a HTTPrequest (/v2025/search)
I needed this because i need to find the access profile name to use in the next Http request
{“include”:[“originalRequests”,“expansionItems”,“action”,“status”],“indices”:[“accountactivities”],“query”:{“query”:“trackingNumber:“{{$.trigger.trackingNumber}}””}}
So after this i use a search http request to find my access profile ID
{“indices”:[“accessprofiles”],“query”:{“query”:“name:“{{$.hTTPRequest.body[0].accountRequests[0].attributeRequests[0].value}}””}}
And finally i use “Manage Access” action to retry the access request that had error before with this configuration
request Identities:
$.trigger.recipient.id
Access to manage:
{“indices”:[“accessprofiles”],“query”:{“query”:“name:“{{$.hTTPRequest.body[0].accountRequests[0].attributeRequests[0].value}}””}}
And with that i got success with my retrys
