Reputation: 63
Can someone please tell me which of the following has more advantages - plugin/workflow ?
Upvotes: 0
Views: 407
Reputation: 1
Plugins can execute all actions in a single transaction if run synchronously thereby maintaining data integrity. Workflows cannot do that. Workflows run asynchronouly and if an error occurs in the middle, the already committed db transactions are not rolled back.
Upvotes: 0
Reputation: 61
As the Post in Custom WorkFlows vs Plug-ins in MS CRM seems to be a little outdated, i can share my experieces with you.
Workflows:
Plugins:
In my experience Plugins are mostly the better suited solution if you have (even a little) complicated matter, as workflows are far less maintainable. Simple "1 Liners" can often be replaced by workflows. Nevertheless each developer/consultant has to suggest his own way for the improvement/developmet of his/her organization.
@Community: Feel free to correct me, if i am wrong anywhere or if you have different experiences.
Upvotes: 1