Adding Convert Email To Task in Email Ribbon MS CRM 2011

Today I saw one thread in CRM Development form to create a button in email ribbon to task 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



          <CustomAction Id=”EmailToTask” Location=”” Sequence=”40″>


              <Button Id=”” Sequence=”50″ Command=”” LabelText=”EmailToTask” Image16by16=”/_imgs/ribbon/Converttotask_16.png” Image32by32=”/_imgs/ribbon/Converttotask_32.png” TemplateAlias=”o2″ ToolTipDescription=”Convert Email To Task” />





          <RibbonTemplates Id=”Mscrm.Templates”></RibbonTemplates>



          <CommandDefinition Id=””>

            <EnableRules />

            <DisplayRules />


               <JavaScriptFunction FunctionName =”ConverToTask” Library =”$webresource:new_ConvertToTask.js”></JavaScriptFunction>





          <TabDisplayRules />

          <DisplayRules />

          <EnableRules />


        <LocLabels />



** you need to create Converttotask_16.png,Converttotask_32.png and need to copy under “_imgs/ribbon” folder in your crmweb directory.

Enjoy !!



Filed under MS CRM 2011

7 responses to “Adding Convert Email To Task in Email Ribbon MS CRM 2011

  1. I just want to add one thing:
    We can create image web resources and refer them in the ribbon customizations instead of copying the images to the “imgs/ribbon” folder.

    • mahenderpal

      yes surely we can do that, I forget to mention this in my post. just in that case we will refer image as Image16by16=”$webresource:WebResourceName

  2. Pingback: Creating Task entity record through rest in MS CRM 2011 « Mahender Pal

  3. How can I make this work for Outlook 2010 with CRM 2011 Online?

  4. How do I do this? Where do I put this code? Where is the ConvertToTask.js web resource located? Thank you. Sorry for being such a noob.

    • mahenderpal

      you need to use this code to email RibbonDiffXml and you need to create js webresource to create and open task entity record.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s