5.5.4 - Custom Content Type (Source Classification)
5.6.4.1. Add Source Classification
You can add and map Custom Source Content types (Source Classification) by clicking on "Add a new source classification" icon. Each classification has its own unique set of metadata which can be mapped to the appropriate Target Content Type.
For example, file shares save images as document content types. SharePoint has a provision to save all the images with content type as “Image” rather than “Document”. To allow a proper mapping, Migration Accelerator provides “Add a new source classification” functionality in the Content Type Mapping Settings screen.
You can assign custom content type to a particular document type (e.g. Images having extension “.jpg” or “.png” in the Name field).
The “Add Source Classification” screen has a “Script Evaluation Area”. This can be used to evaluate the added scripts to verify whether they are correct.
See the image below for an example:
Add new Source Classification using Power Shell script
The given below script is specifically belongs to create Custom Content Type.
The given below script is specifically belongs to create Custom Content Type.
1. Select “Add a New Source Classification” button from respective Migration Task Setting
Window.
2. Add Source Classification window should pop up; you need to provide following details to
create a new source classification.
a) Please Enter, Content Type Name.
b) Please Select, respective Base Content Type.
c) Script Language should be PowerShell.
d) Script Name, it is optional, so you can give any suitable name, if desired
e) Script Variables, this is optional too, and still if you desire to select any defined
variable name from the drop-down list, it mainly helps you to get the value out of it
at runtime.
f) You could see two panels. Left panel allow you to write IronPython/PowerShell
Script, and the Right panel is for Script Evaluation.
g) Copy the script provided below, which you need to paste into script area at left
panel.
5.6.4.2. Edit Source Classification
Also there is a provision to edit the custom source classifications added by user. You can select the added source classification and click on “Edit source classification” icon to edit the script or change the base content type. This step is not mandatory.
You can then use the custom source classification to map to an appropriate target content type (e.g. Image) and map appropriate metadata(s) to target metadata(s). For more information on metadata mapping, visit "Metadata Mapping".
5.6.4.3. Delete Source Classification
You can also remove a custom content type which is not mapped by clicking on the “Delete Source Classification” icon as shown in image above.
Comments