It doesn't rely on Marks Templates. I myself look at how he did it and adjusted it for how I wanted it. So the answer of what I think you are asking for is that you don't need to do anything besides my steps. I did it on my clean dev-instance.



Sorry, that problem was my code-paste. I didn't noticed that I messed it up and somehow I   added a couple of extra code as well. Now see that the editor isnt my best friend =). I pasted the code in again but not without the "code-addon" and with a Bold-style instead.



This should solve your problem.


Just tried this in my Developer instance and it worked perfectly, can't wait to clone live environment over Dev to test in a near production instance.



Great work Goran


nice to hear 😃



Let me know if you got any other things you want to solve, or throw some ideas around. I aint a supercoder, but atleast I can be used as a sounding board 😃



//Göran


Sorry to revisit this after such a long time however I'm finding that when we assign a template to a call as you describe and I've implemented. The new incident initially gets assigned to the Service Desk (our default group) and only when opened for the first time does the template get applied.



Any thoughts?



Thanks


Hi amacqueen,



Sorry for the late reply, I'm hitting my summer vacation now, but it's lousy weather so the community is a nice spot to visit



Ahh one of my first creations 😃 Just before I answer you question I would just want to say that I would rather put the template name in a display BR and fetch the template name from scratchpad. This way you didn't need to put the field on the form and a ui policy to hide it.



But anyway, you're right, since the template is applied with a onLoad, that is what happens. What's needs to be done here is to move the functionality to a insert BR on incident to make it happen when it's created and in that case you don't need the display BR I mentioned before.



I guess I made this in the days were I was more comforted in Client scripts that Business Rules. Let me know if you need help with resolving this with a BR instead.



//Göran