SharePoint is a great platform to provide a wide range of functionalities right out of the box. However, it is common that a custom action is needed to fulfill a particular need of the business users. Custom actions allow for extending the core features of SharePoint.




To Create a Custom Action by Using a Feature

  • In Visual Studio, click New Project and then click Empty SharePoint Project. Name the project and then click OK.
  • In the SharePoint Customization Wizard, select the local SharePoint site that can be used for debugging and select deploy as a farm solution.
  • In Solution Explorer, right-click the Features node and then click Add Feature.
  • Name the feature and add a description


  • In Solution Explorer, right-click the project, select Add, and then select New Item.
  • In the Add New Item dialog box, select the Empty Element template, type the name, and then click Add.



  • Add the image map folder and the required image


The CustomAction element defines the extension to the user interface and specifies the following attributes:

  1. Description: Description of the custom action.
  2. Title: The title of the custom action.
  3. ID: Custom action unique identifier.
  4. Sequence: Specifies the ordering priority for actions. A value is 0 indicates that the button will appear at the first position on the ribbon.
  5. Rights: Specifies a set of rights that the user must have for the link to be visible. For example, ViewListItems indicates that a person with View List Items permission can access this custom action. If not specified, then the action always appears in the list of actions.
  6. Location: Specifies the location of the custom action. For example, Microsoft.SharePoint.DisplayForm will show this custom action on the View form of an item.
  7. RegistrationId: Specifies the identifier of the list or item content type that this action is associated with.



Deploy the solution and activate the feature


Now you verify as shown below