Need help on arg value

I am trying to create an flow where main flow has invoke activity and inside that invoke have one more invoke so i wanted to have that user invoke value to capture under catches if it fails.
can someone help
BlankProcess.zip (6.0 KB)

Hi,

Unfortunately, out type argument will be blank when exit the xaml due to exception.
How about using exception.Data as the following sample?

Set content of yourname variable to exception.Data(“Yourname”) , then rethrow

we can get it using exception.Data(“yourname”) in catch state of main.xaml

The following is a sample of the above.

BlankProcessv2.zip (6.4 KB)

Regards,

1 Like

@Yoichi thanks But is there any other way as this will create a problem in customize exception handling

Hi,

If you want to pass data via out type argument, the xaml must successfully exit.
So, as another approach, use TryCatch and end the xaml normally, as the following sample.

BlankProcessv3.zip (6.4 KB)

Regards,