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

Custom Workflow - reading input parameter stops plugin from running

$
0
0

I have a custom workflow activity which accepts an input parameter called "Entity". This is just a string. 

[Input("Entity")]
        [RequiredArgument]
        public InArgument<string> TargetEntity { get; set; }

In my custom workflow activity I want to read it, so I do the following:

string TargetEntity.Get(executionContext);


As soon as I add that line my workflow activity will no longer execute. When I run it the status will show "Succeeded" but nothing in the workflow will have run, not even the trace at the beginning of the workflow to say the workflow has been entered. There is nothing in the Diag Logs. When I run the SQL Profiler there are only a few statements added to the AsyncBase table showing that the workflow has run and instantly finished. 

If I remove the above line the workflow runs ok. I am wondering what I am doing wrong here? Why would reading an input parameter cause CRM not to do anything in the workflow?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>