5.5.4 - Custom Content Type (Source Classification)

Follow   Add Source Classification

You can add and map Custom Source Content types (Source Classification) by clicking on "Add a new source classification" mceclip2.png 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.


Note: The “Add Source Classification” script should evaluate to “True” for Custom Content Type to work properly. Anything that evaluates to “False” will skip the added source classification settings. You can use any source metadata variable from the drop-down menu.


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
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


mceclip3.png     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.


Note: Some fields are disabled in edit mode. You may need to select the variable again if you are editing the source classification.


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".     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.



Was this article helpful?
0 out of 0 found this helpful