Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

As always in such situations, the best option IMO is to avoid using declarative (XML) approaches to use instead a feture event receiver and C# code (unless you're developping an App).

Here's a good start: http://stackoverflow.com/questions/19548874/automatically-creating-a-list-and-a-folder-when-activating-a-feature-in-sharepoi/19566648#19566648https://stackoverflow.com/questions/19548874/automatically-creating-a-list-and-a-folder-when-activating-a-feature-in-sharepoi/19566648#19566648. The code is to create a list, but it is the same concept as to add a field on an existig list.

As always in such situations, the best option IMO is to avoid using declarative (XML) approaches to use instead a feture event receiver and C# code (unless you're developping an App).

Here's a good start: http://stackoverflow.com/questions/19548874/automatically-creating-a-list-and-a-folder-when-activating-a-feature-in-sharepoi/19566648#19566648. The code is to create a list, but it is the same concept as to add a field on an existig list.

As always in such situations, the best option IMO is to avoid using declarative (XML) approaches to use instead a feture event receiver and C# code (unless you're developping an App).

Here's a good start: https://stackoverflow.com/questions/19548874/automatically-creating-a-list-and-a-folder-when-activating-a-feature-in-sharepoi/19566648#19566648. The code is to create a list, but it is the same concept as to add a field on an existig list.

Source Link
Evariste
  • 9.7k
  • 2
  • 21
  • 30

As always in such situations, the best option IMO is to avoid using declarative (XML) approaches to use instead a feture event receiver and C# code (unless you're developping an App).

Here's a good start: http://stackoverflow.com/questions/19548874/automatically-creating-a-list-and-a-folder-when-activating-a-feature-in-sharepoi/19566648#19566648. The code is to create a list, but it is the same concept as to add a field on an existig list.