How to get count of activities used inside workflow

One way is to read to your Xaml file using “Read Text File” Activity and check for string “IdRef” in the output.

(Split(strOutput,"IdRef").Length-1).ToString

Parent activity will have an IdRef, to exclude that make it -2 in above piece of code.

1 Like