How to collect exception in an excel sheet and retry


#1

Hi Everyone,

I am working on Salesforce and using only one try catch in main xaml and remaining try catch contains throw message. I need to collect the case IDs where exception occured and need to retry the same and also export the exception occured case IDs to an excel. Could you please provide an xaml if you have as it requires more understanding for me.

As of now if an exception occurs, then it throws in child workflows then parent workflow catches that exception message and robot gets stopped.

Thanks,
Ulaga


#2

I dont think there is any retry option available, you need to build the logic in parent in such a way that the child workflow is reinvoked.

noOfRetry=0
maxNoOfRetry=2

while (noOfRetry < maxOfRetry)
{
noOfRetry = noOfRetry + 1

try
invoke child workflow
noOfRetry = maxNoOfRetry
catch
do nothing
}