I was working on upgrading a simple SharePoint application from SharePoint 2007 to SharePoint 2010. One of the components was a CustomAction feature that placed a menu item on a list’s toolbar. So I needed to migrate the CustomAction Xml to place the menu item on the SharePoint 2010 ribbon.
No big deal I thought.After a bit of work, I had the button created and showing up on the correct lists’ ribbons. After a few tests, I discovered that the only issue with the button was that the {ListId} token in the CommandAction element was not getting replaced with the list’s ID as it had in SharePoint 2007 (WSS 3.0 and MOSS 2007) and as it was supposed to (according to all of the documentation and articles I could find).