Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<appSettings>
    <!--Below fields are required to get the search result, which determines what meta data to export-->
  <add key="apiUrl" value="https://local.dev.digizuite.com/dmm3bwsv3"/>
  <add key="username" value="SuperAdministrator"/>
  <add key="password" value="098f6bcd4621d373cade4e832627b4f6"/>
  <add key="searchName" value="exportSearch"/>
    
  <!--Below configs are possible inputs for the exporting search. 
      The conditions in the search's filters have an AND relationship, so writing all values will only export assets, which adhere to ALL conditions.-->
  <add key="channelId" value=""/>
  <add key="catalogFolderId" value=""/>
  <add key="assetIds" value="1"/>

  <!--Getting the data to export is done with pagination. This may be desirable if millions of assets and their meta data are to be exported. -->
  <add key="assetsPerPage" value="100"/>
    
  <!--Below fields are used to determine what kind of export to perform. 
      Some fields are plugin specific, i.e. "folderPath" is required for the plugins "XmlToLocalFolder" and "ExcelToLocalFolder" and others-->
    
  <!--Defines what the meta data should be save as. The options are "Excel" and "XmlFiles"-->
  <add key="metadataTransformType" value="XmlFiles"/>
  <!--Defines where/how the meta data should be saved. The options are "XmlToLocalFolder" and "ExcelToLocalFolder"
      Please note that these options work in conjunction with the options for metadataTransformType, i.e. you cannot have a metadataTransformType of "Excel"
      and a metadataDeliverType of "XmlToLocalFolder".-->
  <add key="metadataDeliveryType" value="XmlToLocalFolder"/>
  <!--Defines where to place the exported assets. The option is only "LocalFolder" ATM.-->
  <add key="assetDeliveryType" value="LocalFolder"/>
  <!--Determines whether to also export asset. The options are "true" and "false"-->
  <add key="exportAssets" value="true"/>
  <!--Determies where the exported assets and mata data are placed (if the "LocalFolder" types are used)-->
  <add key="folderPath" value="C:\Users\jb.DIGIDOM\working\exportedAssets"/>
  <!--Determines whether the exported assets are deleted when the export is done. 
      NB! The "delete" is a soft delete, i.e. some variables in the DB are changed, but the relevant files and records still exist-->
  <add key="deleteExportedAssets" value="false"/>

  <!--Below fields are required to parse the search result into meta data and also persisting the meta data and assets.
      Each of "FieldId" values match the IDs in the search-->
    
  <!--Becomes the file name of of the exported files-->
  <add key="titleFieldId" value="title"/>
  <add key="extensionFieldId" value="extension"/>
  <add key="urlFieldId" value="sourceUrl"/>
  <add key="assetTypeFieldId" value="assetType" />
  <!--Used when searching for assets and meta data using paging-->
  <add key="totalFieldId" value="total"/>
  <!--The search used to get the assets and meta data may return values, which shouldn't be exported. Define those values here.-->
  <add key="metadataExcludeFieldIds" value="extension,total_items,sourceUrl,total,itemId"/>
  <!--Some meta data may be complex types like trees or multi combos. Those meta data will become a string that's seperated by the "splitter" value.-->
  <add key="splitter" value="|"/>
</appSettings>

...