[unsupported]

One of my current projects has requirements to add toolbar buttons to allow the user to create a new, related Entity such as a phone call or appointment with a click of a button.

Buttons are added to the toolbar by modifying the isv.config.xml and inserting code similar to the following:

<Button
    Title="Phone Call"
    ToolTip="Create a phone call"
    Icon="/_imgs/ico_16_1071.gif"
    JavaScript="locAddRelatedTo(4210);"
/>

I would like to point out the JavaScript function locAddRelatedTo().  This will open a new window containing a new CRM Entity.  The Entity being created is determined by the parameter passed to the function.  The parameter is the ID of the Entity in question.  In the above example, 4210 is the Entity ID for the Phone Call Activity.  Substitute any valid Entity ID to create a new built-in or custom Entity.