Inactive Workflows Listed in Item Edit Menu - SP13

  • 14 December 2016
  • 4 replies
  • 0 views

Badge +8

Hello 

On a SP13 list, you can click the 3 dots on the linked item but sometimes it collects multiple “workflow” options in the drop down and you have to check each one to see which one is valid. I have learned that you can go into list settings and rename the active one so that you can tell them apart but the old ones are still in the list as inactive options. Is there a good way to clean this up so only the one active one is listed? Thanks!

197013_pastedImage_1.png


4 replies

Userlevel 5
Badge +14

I think this could help you  

it looks like you have for unknown reason allowed create instances for previous versions of a workflow

Badge +11

Or someone just had fun with custom actions silly.png

Open your list in SharePoint Designer and see if there are custom actions created that could explain what you are seeing in the list item menu.

Cheers

Philipp

Badge +8

Unfortunately, my company does not grant me SP designer access. Thanks for the reply though.

Badge +11

I would not say "unfortunately" in this case. I wished this this policy would be communicated as a best practice by Microsoft... Thumbs up for your company wink.png

However, we can also use PowerShell in this case.

Getting all custom actions for the list:

$web = Get-SPWeb http://paul.dev.local/sites/dev/
$list = $web.GetListFromUrl('http://paul.dev.local/sites/dev/Lists/XXX/AllItems.aspx')
$customActions = $list.UserCustomActions

foreach($ca in $customActions)
{
    $ca | select Title, Description, ID
}

Deleting a specific custom action via powershell:

$ca = $list.UserCustomActions.Item('XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX')
$ca.Delete()

Where XXX-XX... is the ID of the custom action you receive from step one.

Cheers

Philipp

Reply