Custom Activity with Scope and Unwanted Text "Body: Delegate"

Hello Community,

I want to program a custom activity with a scope. Therefore I use the following code:


using System.Activities;
using System.Activities.Statements;
using System.ComponentModel;

namespace UITest {

  public class Scope : NativeActivity {

    public ActivityAction Body { get; set; }

    public Scope() {
      Body = new ActivityAction {
        Handler = new Sequence { DisplayName = "Do" }

    protected override void Execute(NativeActivityContext context) {




After the compilation, the building of the NuGet package and the importing in the UiPath Studio all works well and as expected. But if I use the scope inside a workflow, it contains an unwanted text “Delegate: Body”.


What is my failure? How is it possible to create a scope activity without this text?

Thanks for tips and hints.
Best regards

1 Like

Hi @StefanSchnell,
Not sure about this but I think that @DeanMauro is the great guy who I think will know the answer :slight_smile:


Hello Community,

it is necessary to work with XAML screen definitions. I did not do that, and this is reason that the error message appears. Much more coding is necessary here, as seen in this great webinar.

Best regards


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

Hi @Pablito and @DeanMauro

I am also curious to know that do we the body inside the native activity ?