How to call a library activity from another library activity

I notice that when you add a library project to an automation project, the library activities show up in the Activities tab of the automation project. However, when you are developing code inside the library, the activities in the library don’t show up in the Activity panel of the library.

Sorry if that sounds confusing, but I can’t think of another way to say it.

I have a library activity ‘A’ that I want to call from another activity ‘B’ that is in the same library. The only way I can find so far to do this is:

  1. Open the sequence that contains activity ‘B’.
  2. Select the library project tab.
  3. Drag the xaml file that contains activity ‘A’ into activity ‘B’, which results in a “Invoke Workflow” activity.

Is there a better way to do this?

I should have mentioned:

  • Each xaml file in the library contains 1 sequence.


During we are writing library workflow, we cannot call it as activity because it’s not library yet.
So, It’s normal way to use InvokeWorkflow to call other workflow file, i think.
(Input workflow file name directly, or drag and drop the file)