Custom action content type binding not working

18/05/2015 10:18

I had issue with binding following action to content type, it was not working as expected. I used web feature and I tried to use content type id value generated by Visual Studio. I found some articles for this issue and it was generally about capital letters in content type id. Here is the list of my tries...


0x010025C0ADC5F5FF40598A9BC052B0A231AA - my custom content type
0x010025C0ADC5F5FF40598A9BC052B0A231AA007A64C85CED9E9B48B5854C33BCAEBFB1 - list 1, content type inherited
  
  RegistrationId values
  0x0100 - working, but for all content types
  0x010025C0ADC - not working for any content type
  0x010025c0adc - not working for any content type
  0x010025c0adc5f5ff40598a9bc052b0a231aa - not working for any content type
  0X010025C0ADC5F5FF40598A9BC052B0A231AA - not working for any content type
  0x010025 - working for lists inherited my custom content type, but not for others - expected behavior



<?xml version="1.0" encoding="utf-8"?>
 <Elements xmlns="https://schemas.microsoft.com/sharepoint/">
  <CustomAction
 
  RegistrationType="ContentType"
  RegistrationId="0x010025"
  Location="EditControlBlock"
  Sequence="300"
  Title="Add evaluation">
    <UrlAction Url="{SiteUrl}/_layouts/15/myprojectname/Addevaluation.aspx?ID={ItemId}&amp;ListId={ListId}&amp;Source={Source}'"/>
  </CustomAction>
</Elements>