title: In SharePoint how to display custom ribbon button to particular lists only?
body: <p>I am having four external list "List1", "List2", "List3", "List4". I have added a custom ribbon button Like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;CustomAction
      Id="ATEAgWorkOrderButton"
      RegistrationType="List"
      RegistrationId="600"
      Location="CommandUI.Ribbon"&gt;
      &lt;CommandUIExtension&gt;
        &lt;CommandUIDefinitions&gt;
          &lt;CommandUIDefinition
           Location="Ribbon.ListItem.Actions.Controls._children"&gt;
            &lt;Button
             Id="Ribbon.ListItem.Actions.ATEAgWorkOrderButton"
             Alt="Click on this button to Add"
             Sequence="3"
             Image32by32="/_layouts/Images/Project/image.png"
             Command="ATEAg_WorkOrder"
             LabelText="Add Detail"
             TemplateAlias="o2"/&gt;
          &lt;/CommandUIDefinition&gt;
        &lt;/CommandUIDefinitions&gt;
        &lt;CommandUIHandlers&gt;
          &lt;CommandUIHandler
           Command="ATEAg_WorkOrder"
           CommandAction="javascript:alert("Hello Success");" /&gt;
        &lt;/CommandUIHandlers&gt;
      &lt;/CommandUIExtension&gt;
    &lt;/CustomAction&gt;
  &lt;/Elements&gt;
  </code></pre>
  
  <p>The button is now visible in all the external lists. But I want to make it visible for only "List1" and "List2". How to do this?</p>