Create a custom action group in SharePoint 2013/2016 using visual studio

This SharePoint tutorial, we will discuss, how to create a custom action group in SharePoint 2013/2016 using visual studio 2015/2017. This will add links inside the Site Settings page in SharePoint.

Create a custom action group in SharePoint 2013/2016 using visual studio

Follow the below steps to create a custom action group in SharePoint 2013/2016 using visual studio 2015/2017.

Open Visual Studio 2015/2017 -> New Project. Then Choose SharePoint 2016 – Empty Project.

Then in the next dialog box, give a SharePoint site URL and choose farm solution.

Create a custom action group in SharePoint using visual studio

Now add one Empty element to the project.

Right-click on Project -> Add New Item and then choose Empty Element like below:

Create a custom action group in SharePoint 2013 using visual studio

By default, it will be an empty element. Add the below code here:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!– Add a Custom Group “Master Page Look And Feel" under Site Actions –>
<CustomActionGroup Description="Custom Group"
Id="CustomgroupAction"
Location="Microsoft.SharePoint.SiteSettings"
Sequence="100"
Title="Custom Action Group">
</CustomActionGroup>
<!– Add a Link under the Group “Master Page Look And Feel" in Site Actions –>
<CustomAction GroupId="CustomgroupAction"
Id="UserInterfaceCustomActions.SiteSettings"
Location="Microsoft.SharePoint.SiteSettings"
Sequence="20"
Title="Go to EnjoySharePoint.com">
<UrlAction Url="https://www.enjoysharepoint.com" />
</CustomAction>
</Elements>
Create a custom action group in SharePoint 2016 using visual studio

Now right click and deploy the solution. Once it is deployed successfully. Go to the Site Settings page and you can see a section must be added like below:

Create a custom action group in SharePoint 2013/2016 using visual studio

You may like following visual studio tutorials:

This SharePoint tutorial, we learned how to create a custom group in SharePoint 2013/2016 using visual studio 2015/2017.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>