다음을 통해 공유


How do I get the workflow InstanceId?

Note: Cross posted from Sajay.
Permalink

You can use a CodeActivity that returns a single result.

 

     public sealed class GetWorkflowInstanceId : CodeActivity<Guid>
    {
        protected override Guid Execute(CodeActivityContext context)
        {
            return context.WorkflowInstanceId;
        }
    }