Hi, I have a question regarding Orchestrator queues and retries.
More specifially I’m wondering if there is a way to get “Max # of retries” (the one you set when creating a queue in Orchestrator) from within the UiPath Studio ReFramework. I’m aware that there in the Config.xls is a MaxRetryNumber constant, but to my understanding this Constant is only if you are not using Orchestrator queues… right?
When digging a bit in the ReFramework I found this check under Robot Retry in SetTransactionStatus.xaml:
cint(in_Config(“MaxRetryNumber”))>0. Where is the MaxRetryNumber initialized? Does it come from the Excel-Config or from the Queue?
The reason I’m asking is that I want to send an email when something goes wrong, but only on the final retry.
Right now I’m doing like this:
if TransactionItem.RetryNo = 1 (I have set the max retry for the transaction to 1 in Orchestrator).
– Send Outlook Acitivity
But perhaps there is a better way to do this than hardcoding the max retry no?
Thanks in advance.