Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Is it possible to request cancel in a custom workflow?

$
0
0

Hello all!

Is it possible to request cancel in a custom workflow?

Please look at the example below.

namespace test_workflow
{
    public class JustTesing: CodeActivity
        {
            protected override void Execute(CodeActivityContext executionContext)
            {

                if(boolean)
                {

                   //do stuff

                 }
                else
                 {

                    // I would like to cancel the workflow here so in the workflow history it will appear as canceled

                  }

            }
     }
}


Thank you!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images