Command
Export-PropertyMapping
Description
The command to export the property mappings to a file.
Index
Examples
Export custom mappings
$mappingSettings = Set-PropertyMapping -Source "My Old Title" -Destination "Title" $mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source Col1,Col2,Col3 -Destination "MultipleColumn" $mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source "SourceCustomField" -Destination "MyCustomField" Export-PropertyMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPropertyMappingsFileName" The property mappings exported with success to: C:\MyMappings\MyPropertyMappingsFileName.sgpm
Export mappings from a source list and a destination list
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite" $dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite" $srcList = Get-List -Name "mysrclist" -Site $srcSite $dstList = Get-List -Name "mydstlist" -Site $dstSite $mappingSettings = Get-PropertyMapping -SourceList $srcList -DestinationList $dstList Export-PropertyMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPropertyMappingsFileName" The property mappings exported with success to: C:\MyMappings\MyPropertyMappingsFileName.sgpm
Syntax
Export-PropertyMapping-MappingSettings <MappingSettings> [-Path <String>] [-Overwrite <SwitchParameter>]
Parameters
-MappingSettings <MappingSettings>
Specifies the mapping settings.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Overwrite <SwitchParameter>
Specifies the file will be overwritten if already exist.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-Path <String>
Specifies the path where you want to save the file.
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | PSPath |