{"id":594,"date":"2011-10-13T11:01:33","date_gmt":"2011-10-13T11:01:33","guid":{"rendered":"http:\/\/mahenderpal.wordpress.com\/?p=594"},"modified":"2011-10-13T11:01:33","modified_gmt":"2011-10-13T11:01:33","slug":"adding-convert-email-to-task-in-email-ribbon-ms-crm-2011","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=594","title":{"rendered":"Adding Convert Email To Task in Email Ribbon MS CRM 2011"},"content":{"rendered":"<p>Today I saw one thread in CRM Development form to create a button in email ribbon to\u00a0task from current email activity. So thought to create the same. In this post I am going to create a button in email ribbon to create task from email. you can use below code for the same<\/p>\n<p><strong>&lt;RibbonDiffXml&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CustomActions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CustomAction Id=&#8221;EmailToTask&#8221; Location=&#8221;Mscrm.Form.email.MainTab.Convert.Controls._children&#8221; Sequence=&#8221;40&#8243;&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CommandUIDefinition&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Button Id=&#8221;Mscrm.Form.email.Convert.ToTask&#8221; Sequence=&#8221;50&#8243; Command=&#8221;Mscrm.Form.email.TaskCommand&#8221; LabelText=&#8221;EmailToTask&#8221; Image16by16=&#8221;\/_imgs\/ribbon\/Converttotask_16.png&#8221; Image32by32=&#8221;\/_imgs\/ribbon\/Converttotask_32.png&#8221; TemplateAlias=&#8221;o2&#8243; ToolTipDescription=&#8221;Convert Email To Task&#8221; \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/CommandUIDefinition&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/CustomAction&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/CustomActions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Templates&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;RibbonTemplates Id=&#8221;Mscrm.Templates&#8221;&gt;&lt;\/RibbonTemplates&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/Templates&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CommandDefinitions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CommandDefinition Id=&#8221;Mscrm.Form.email.TaskCommand&#8221;&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;EnableRules \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;DisplayRules \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;Actions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;JavaScriptFunction FunctionName =&#8221;ConverToTask&#8221; Library =&#8221;$webresource:new_ConvertToTask.js&#8221;&gt;&lt;\/JavaScriptFunction&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/Actions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/CommandDefinition&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/CommandDefinitions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;RuleDefinitions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;TabDisplayRules \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;DisplayRules \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;EnableRules \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/RuleDefinitions&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;LocLabels \/&gt;<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/RibbonDiffXml&gt;<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>** you need to create Converttotask_16.png,Converttotask_32.png and need to copy under \u201c_imgs\/ribbon\u201d<\/strong> <strong>folder in your crmweb directory.<\/strong><\/p>\n<p>Enjoy !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I saw one thread in CRM Development form to create a button in email ribbon to\u00a0task from current email activity. So thought to create the same. In this post I am going to create a button in email ribbon to create task from email. you can use below code for the same &lt;RibbonDiffXml&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CustomActions&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;CustomAction Id=&#8221;EmailToTask&#8221; Location=&#8221;Mscrm.Form.email.MainTab.Convert.Controls._children&#8221;&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=594\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/594"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=594"}],"version-history":[{"count":0,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/594\/revisions"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}