Hi everyone Have anyone here had any success with ...
# sdf
j
Hi everyone Have anyone here had any success with deploying and updating workflows using SDF? The first deploy to a new account works fine but updates after the initial deploy seems to not replace the earlier deployed workflow but instead it seems to merge the old and new version of the workflow which causes all kinds of issues. Any ideas or suggestions?
p
We’ve had some major issues with Workflows and SDF (however maybe not the ones you describe), we’ve had to adopt a lot of different strategies for deploying them such as scrubbing dependencies that can’t be properly resolved in the project all of which involves hands on. Nowadays I advocate alternative solutions (Code) over workflows just to avoid this however sometimes you really need a workflow
l
our strategy is code 🙂
🚀 1
m
For workflows, are you already using Compare with Account Object before deployment?
or sometimes if records can't be compared with the account object (I can't recall which) I import different environments into different directories then use WebStorm's native Compare With
j
Yes, we are. If we do a compare immediately after a deployment of an update to a workflow we see differences so SDF deployment of workflows is not really working for our purpose. So I guess we need to avoid workflows and use code instead as Petter and Christoffer suggests above if we want to deploy everything with SDF
👍 1
p
I use code over workflows too. Easier to read & maintain. I've seen workflows that look like somebody has been sick on the screen!
m
I think the main area I see workflows used are for approval routing. Is there a scripting architecture /pattern someone might recommend for doing these?
s
I think workflows are the best/easiest to modify for approval scenarios as well merik.
n
@PNJ I've seen code that looked the same! Workflows and code are two different tools in your toolbox. Knowing when and how to use them effectively is an art 🙂