Jaa


CReplicationProject.BusinessDataProjectXml Property

Gets or sets the full path of the file that contains the XML configuration for the business data project. This property is used to stage business data.

Note

This property is valid only for business data projects.

string BusinessDataProjectXml { set; get; }

Return Value

A string value that defines the full path of the XML configuration file for the business data project. The default location in which to store these files is %COMMERCE_SERVER_ROOT%/Staging/Projects.

Remarks

The BusinessDataProject property must be set to true for this property to be valid.

The CReplicationProject.BusinessDataProjectXml property corresponds to the COM property named ReplicationProject.BusinessDataProjectXml.

Example

The following example creates a new business data project named BusinessDataProj and specifies the contents and the location of its XML configuration file, C:\Config\Config.xml.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");

  CReplicationProject replicationProject;
  replicationProject = (CReplicationProject)replicationServer.OpenProject("BusinessDataProj", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
  XmlDocument xmlDocument = new XmlDocument();
  xmlDocument.Load(@"C:\Config\Config.xml");
  replicationProject.BusinessDataProjectXml = xmlDocument.InnerXml;
  replicationProject.Commit();

  /* Content of C:\Config\Config.xml
  
    <?xml version="1.0" encoding="utf-8" ?> 
  - <BusinessDataProjectProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" BusinessProjectName="baba">
    <BusinessProjectHeader MajorVersion="1" MinorVersion="1" Revision="1" Build="1" /> 
    <Source>CSharpSite</Source> 
    <Destination>DestinationSite</Destination> 
    <Role>SourceAndDestination</Role> 
  - <BusinessData BusinessDataID="b0a1b3d6-a70a-4ce8-ab4b-24d611586783" BusinessDataTypeName="Catalog">
    <ExportOption Name="MODE" Val="INCREMENTAL" /> 
    <ExportOption Name="SCHEMAEXPORTTYPE" Val="RELEVANT" /> 
    <ExportOption Name="EXPORTDELETEDITEMS" Val="YES" /> 
    <ExportOption Name="EXPORTEMPTYVALUES" Val="YES" /> 
    <ExportOption Name="CATALOGSTOEXPORT" Val="Adventure Works Catalog" /> 
    <ExportOption Name="CATALOGSTOEXPORT_SOURCECULTURE" Val="Adventure Works Catalog" /> 
    <ExportOption Name="PROPERTIESTOEXPORT_SOURCECULTURE" Val="BaseCatalog Name,Catalog Name,Category Name,Category Pricing,Color,Date of Introduction,Definition Name,Description,Display Name,Image_filename,Image_height,Image_width,Is Searchable,Last Modified,List Price,Name,OnSale,Primary Parent Category,Product Id,Size,SKU,Type,VariantCode,VariantId" /> 
    <ExportOption Name="EXPORTASVIRTUALCATALOG" Val="NO" /> 
    <ExportOption Name="EXPORTDEPENDENTBASECATALOGS" Val="NO" /> 
    <ExportOption Name="CATALOGSETSTOEXPORT" Val="NO" /> 
    <ImportOption Name="MODE" Val="INCREMENTAL" /> 
    <ImportOption Name="ERRORTHRESHOLD" Val="1" /> 
    <ImportOption Name="OVERWRITERELATIONSHIPS" Val="YES" /> 
    <ImportOption Name="TRANSACTIONMODE" Val="NO" /> 
    <ImportOption Name="MATERIALIZEVIRTUALCATALOG" Val="NO" /> 
    <ImportOption Name="IMPORTSCHEMACHANGES" Val="YES" /> 
    <ImportOption Name="GENERATEFULLTEXTINDEXES" Val="NO" /> 
    <ImportOption Name="REFRESHCACHE" Val="NO" /> 
    </BusinessData>
    </BusinessDataProjectProperties>
   
   */

See Also

Other Resources

Projects

How to Create and Modify a Staging Project

CSS Business Data XML Configuration File Syntax Elements

CReplicationProject.BusinessDataProject Property

CReplicationProject.Get Method

CReplicationProject Class