Still thinking on Plug-ins vs custom workflow (Power Automate)



Still thinking on!

I had the guy from Microsoft doing a battery of tests and gave him some reports and logs and told the guy that we didn't have a custom workflow, well we do have a few now, as per my Solutions Architect's directive, because we prefer plug-ins to custom workflows, and the questions arise.

Does it make sense nowadays with asyncronos and syncronos workflows?
Does it really make sense for complex scenes and integration?

Having time it is preferable to make only plugins, in CRM environments where we need performance, we should try to avoid custom workflows as much as possible however the strong point of process's using async and that in case of error you can do retry,
The advantage of Custom workflows we can switch from Sync to Async, just by changing if you want sync or running in the background doing the same with plugins does not work because in pre and post sync, the image of what you changed comes in Pre Input Parameters while in Post Async it comes in Pre Image. And that in Post Async the commit was already made in the Database. Advantage of Custom Workflow use case: Sending emails when changing a value in a field or assigning a record can be done very well in the process initially through Sync but if there is a performance problem, turn it into a background. Degradation on Plugin: In plug-ins where you can see more performance degradation in using Linq in CRM instead of Query Expression because it caches from time to time, when not used at 100%, is misleading. In summary, the use of Plugins is preferable to Custom Workflows.
The custom workflow process is quite heavier than a plugin, whether sync or async, the reason is that in the plugin (sync or async) you can say which fields you want from the entity, whereas in process's the call ("image") contains all field.
For some projects, I have done many processes with custom workflow activities, just because it is less work for me and faster deployment and where I don't need performance,

Comments

Popular Posts