Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Send Email Plugin Fire only on Send....

$
0
0

Hi everyone,

I have created an email plugin. It is registered on create and update of the email activity.

However, I only want the plugin to fire only on send.

When I set the message in the plugin registration to "send" I get error "Given Key not present in the dictionary"

Line of code that fails:

Entity email = (Entity)pluginExecutionContext.InputParameters["Target"];

 Plugin works ok when set the message to create.

Any ideas on how I can get it working on Send?

 


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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