Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The following is the field id i have used in my list defenition. I got it from the internet.
How we can generate this kind of different field id for our list defenition. Based on what we are generating this field id.

XML
<FieldRef ID="{475c2610-c157-4b91-9e2d-6855031b3538}"/>
<FieldRef ID="{d3a92d97-2b77-4a25-9698-3ab54874bc10}"/>
<FieldRef ID="{d3a92d97-2b77-4a25-9698-3ab54874bc12}"/>


Here i am using field id. Based on what this field id created.
Posted
Updated 21-Oct-13 22:15pm
v3

1 solution

Introduction :
SharePoint 2010 list definition can be created using Visual studio.
It is a xml file in which we can provide unique GUID, display name, Static name and more attributes.
In SharePoint GUID's are unique.

Suggestion :
Before use following solution take care of some points I mentioned below.
1] You are referring tag "FieldRef" it means you are using existing column. which may be Site column/column from content Type/Predefine column for specific purpose by SharePoint.
2] Adding reference of improper GUID wont work if you are look for existing column.

Solution :
1] Each list column has unique id to create them Go to
Visual Studio 2010 SharePoint project => Tool => Create GUID => select Registry format =>
Click New GUID => Click Copy => Past it at desired location

Now you have new GUID.

In case you are looking for create definition from scratch follow below articles.

link 1[^]
link 2[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900