Creating invoicedetail item Plugin problem
-
Thursday, February 28, 2008 12:38 PMHi,
I was created a plugin which executes on new invoice item post create.
The problem is when invoice item was created automatically from order (button "create invoice")
the plugin is not executing.
If i create the invoice item manually it works properly.
any ideas?
thanks
All Replies
-
Thursday, February 28, 2008 1:11 PMModerator
there is no plugin to work for create invoice, plugin for preCreate only work when you create invoice manualy.
you can write .net assembly and call on button , you have to define your custom button and then call code that.
Regards,
Imran
http://microsoftcrm3.blogspot.com
-
Thursday, February 28, 2008 1:41 PMImran
I wrote a custom plugin and registered it by PluginRegistrationTool.
It executes when new invoicedetail item was created and it links it to another custom entity lookup fileld.
It works fine only if the invoicedetail item is created manually.
I think that when invoicedetail item is created automatically form order, the plugin is not handling the created item.
Thanks, -
Friday, February 29, 2008 5:15 AMModerator
Today there is new article regarding plugin development on msdn
http://msdn2.microsoft.com/en-us/library/cc296262.aspx
it will help you.
\
My idea you have to mention the plugin for invoiced items not on invoice details.
Regards,
Imran
http://microsoftcrm3.blogspot.com
-
Thursday, March 06, 2008 9:08 AMI have done it.
I wrote a custom activity workflow(windows workflow foundation)
I registered it and the workflow was added into crm, so i can run it from crm for the salesorderitem created -
Friday, March 07, 2008 12:58 AMModerator
Hi there,
make sure that you register your plugin for a child pipeline execution.
Unless you've already done so, download latest version of plug in registration tool http://code.msdn.microsoft.com/crmplugin and try selecting child pipeline execution option during the plug-in registration.
See Parent and Child Pipelines in SDK documentation for more details about how parent/child pipelines are related and when they are executed.
---------------------
Hope this helps
George Doubinski
Blog: http//crm.georged.id.au

