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,