SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom menu action, declared like this:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="">
Title="Convert to ListItem"

Now I want to execute some code when the action is clicked. To be more clear, I need to copy a list item. What do I have to insert into the elements.xml to reach some code?

Thank you very much,


share|improve this question
up vote 1 down vote accepted

You need to specify the Url and pass tokens like ListID, ItemId etc in a child element called UrlAction as shown here:


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.