Get the RegistrationId template list for a SharePoint custom action via Power Shell.

In this hint, I will show How to get the RegistrationId template list for a SharePoint custom action via Power Shell.

Scenario:

If you try to create a custom action via Visual Studio in SharePoint 2010 / 2013, you will note that there’s a tag called RegistrationId.

RegistrationId Custom Action list

The RegistrationId is the template type id of the object like the list , library … etc that you need to add a custom action within its ribbon.

As known 100 is for Generic list (as a custom list) and 101 for the document library, but what about the other templates RegistrationId ?

The following  PoweShell cmdlet will display all the RegistrationId Template List

[System.Enum]::GetNames([Microsoft.SharePoint.SPLi
stTemplateType]) | select {[int][System.Enum]::Parse([Microsoft.ShareP
oint.SPListTemplateType], $_)} , {$_} | Format-Table -HideTableHeaders

Get RegistrationId Template list using PowerShell

Enjoy 🙂

**Please don’t hesitate to ask for any clarifications at comments.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s