Hi,
Is it possible to add a button on the Email Form so that it goes straight to a particular Template? Without having to go via the Template button?
CRM 2013 - On Premise.
*This post is locked for comments
Hi,
Is it possible to add a button on the Email Form so that it goes straight to a particular Template? Without having to go via the Template button?
CRM 2013 - On Premise.
*This post is locked for comments
Ok kool thats better, but how do I get it so that the template is put in the body of the email? and then I can change the email (if I want to) and then click send.
At the moment that just opens up the template to edit.
I presume via Xrm.Utility.openEntityForm("template",id) ; but not sure how I put that in the JS ? Sorry!
Thank you for your help so far though!
if you want to open particular email template pass template id in the url like below , replace guid with your template guid.
/tools/emailtemplateeditor/emailtemplateeditor.aspx?id={DFD4FDF0-902E-450B-A4D6-71FEB7BD0B41}
if you want to open just particular template you could use pass guid of the template in the below method
Xrm.Utility.openEntityForm("template",id) ;
Thanks! I was able to follow those brilliant instructions so thank you for that.
So now when I press the button I get a screen which is a blank email template screen. How would I change it so that the button opened a particular email template related to the Case Entity?
THere is another tool called visual ribbon editor for crm 2011 to add custom buttons on the entity command bar ,
crmvisualribbonedit.codeplex.com
Downlaod this tool and add button to your email entity using this tool
I tested this in my server with following steps
1.Create javascript web resource file with below script
function OpenTemplate(){
var url = Xrm.Page.context.getClientUrl();
window.open(url+ "/Tools/EmailTemplateEditor/Dialogs/emailtemplateproperties.aspx?isPersonal=0");
}
2. Open VIsual ribbon editor and connect your server
2.Once you connected choose email in dropdown
3. You will see below window once you click ok. THen click on "new Button" in the top
4.Give proper name to your button like below
5.click on action tab and choose javascript.
5.
6.in the functionname enter your function name and in library choose the web resource that you created. Once this done save it .
Save may take few minutes and once it completes open your existing email window there you will see your new button.
Ok, thanks. I have really only ever used the Workbench to hide buttons before so adding scripts to it is a bit new for me so I am just trying to work out where I can add the bits you have put in this thread.
Its a Global template for Cases.
You are not changing anything on the email form , it just adds another button in the command bar just like "send" button.
Hi, thanks for your answer, will this still allow me to edit the email before its sent?
Add a custom button to email entity using ribbon workbench tool
http://www.develop1.net/public/page/Ribbon-Workbench-for-Dynamics-CRM-2011.aspx
in the script use window.open to open email template window
var url = Xrm.Page.context.getServerUrl();
window.open(url+ "/Tools/EmailTemplateEditor/Dialogs/emailtemplateproperties.aspx?isPersonal=0");
email template can be global or entity based, so if you want let user to choose template type like global or entity type you can use below url to open the window
window.open(url+ "/Tools/EmailTemplateEditor/Dialogs/emailtemplateproperties.aspx?isPersonal=0");
if you want to open email template for specific entity then you can use below url
window.open(url+ "/Tools/EmailTemplateEditor/emailtemplateeditor.aspx?isPersonal=0&templateTypeCode=1");
in the above url you need to replace templateTypeCode value based on which entity template you want to open . Im opening account specific email template in the above example.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156