Please consider addressing the following when creating your topic:
What have you tried? tried defining a retryCounter and use it during error failure, but unable to get “$.variableA” as the first one to compare. wanted to do 3 retries
What you are trying is currently not possible with Workflows. I strongly suggest that you submit an idea and share the link here so that we can upvote the same.
However, as you want to try only 3 times, you could simply repeat the httpPost action 3 times in your workflow
You may be able to leverage the Workflow Retry from the co-lab colab-workflows/workflows/retry-failed-workflows at main · sailpoint-oss/colab-workflows · GitHub
You can modify this workflow to meet you use case - e.g., schedule it to run on a regular basis (if time sensitivity isn’t an issue) or check in your workflow directly whether there was a success, and if not, re-trigger it (as an external trigger). Note that you should be careful here - I assume that your retry is to accommodate something simple like a temporary timeout. Don’t get caught in an infinite loop of workflows.
Like Nithesh said, if you only want to try 3 times, simply repeat the http post 3 times.