locked
Attach a custom action to an existing list. RRS feed

  • Question

  • Hello all. I have a custom action associated with all simple lists. 

    <CustomAction Id="Monex.Workflows.VacationAction"
            Title="Accion de aprobacion multiple"
            Location="Microsoft.SharePoint.StandardMenu"
            GroupId="ActionsMenu"
            RegistrationType="List"
            RegistrationId="100"
            Sequence="100">
      <UrlAction Url="~site/_layouts/MonexWorkflows/MultipleActionPage.aspx?ListId={ListId}" />
     </CustomAction>
    

    Now, it works fine. So, I would like to associate that custom action with a specific list. I tried doing the following:

    <CustomAction Id="Monex.Workflows.VacationAction"
            Title="Accion de aprobacion multiple"
            Location="Microsoft.SharePoint.StandardMenu"
            GroupId="ActionsMenu"
            RegistrationType="List"
            RegistrationId="B2C7917E74F60451280C4373495E94A68"
            Sequence="100">
      <UrlAction Url="~site/_layouts/MonexWorkflows/MultipleActionPage.aspx?ListId={ListId}" />
     </CustomAction>
    

    That is, change the RegistrationId to the list's Guid, but didn't work. I've been searching and found ways in which the list is defined within the feature. However, that's not possible, since the list has already been created, has workflows attached, and has been certified by my customer's Q&A. 

    Does anyone know how to solve this? Any clue will be really appreciated. 

    Greeetings. 



    Fernando Gómez
    fermasmas.wordpress.com
    Tuesday, February 22, 2011 9:14 PM

Answers