Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Programmatically create Fields and Lookup lists from XML files

$
0
0

Hi there,

External Content Type configuration is exported to XML files programmatically.

Create Content Type

Now it is required to import the xml files and create Content Types in another site collection.

In the imported files there is a XML file named as 'Fields.xml' contains all the fields exported with references to any Lookup lists.

Each lookup list is exported to a separate xml file.

Objective:

1. Create Fields by reading the Fields.xml file.

2. For each lookup list referenced in the content type, check that the list exists in the location referenced by the lookup field. If the list does not exist, create the list and populate the list with list items from relevant lookup xml file.

Help appreciated to achieve the above programmatically.

Regards,


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>