Creating a call to action to open a sharedo

To create an action plan item in an execution engine plan use the following snippet to create the call to action


ctx.sharedoId - should be the id of the work you want to open this can be any kind of work type.



var action0 = actions.sharedo.BuildActionPlanItem() 

            .WithDescription("Review instructions and documents")

            .WithOrder(10)

            .AddCheckbox()

            .MarkRequired()

            .WithCallToAction

             (

                   actions.sharedo.BuildCallToAction()

                  .WithDisplay("Key facts", "fa-check", "btn-success")

                  .WithCommandForSharedo

                (

                    "edit-sharedo",

                    ctx.sharedoId

                )

                .Build()

            )

   

        .Build();