Name
Save-PropertyMapping
SYNTAX
Save-PropertyMapping [-MappingSettings] <MappingSettings> [-SourceList] <List> [-DestinationList] <List>
Save-PropertyMapping [-MappingSettings] <MappingSettings> [-FromFileSystem] <SwitchParameter> [-DestinationList] <List>
DESCRIPTION
The command to save all the property mappings for a specific source and destination list.
PARAMETERS
-DestinationList <List>
Specifies the destination list.
Required? | True |
Position? | 2 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-FromFileSystem <SwitchParameter>
Specifies that the source is the file system.
Required? | True |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | FileSystem |
Aliases | None |
-MappingSettings <MappingSettings>
Specifies the mapping settings to save.
Required? | True |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-SourceList <List>
Specifies the source list.
Required? | True |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Parameter set name | Default |
Aliases | None |
INPUTS
MappingSettings
OUTPUTS
MappingSettings
The resulting mapping settings.
EXAMPLES
-------------- Example: Save custom mappings for 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 $mappingSettings PropertyMappings : Author -> Author KEY Created -> Created Editor -> Editor Modified -> Modified <NO SOURCE> -> MultipleColumn MyCustomField -> MyCustomField KEY Title -> Title ContentTypeMappings : UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings : $mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source Col1,Col2,Col3 -Destination MultipleColumn $mappingSettings = Save-PropertyMapping -MappingSettings $mappingSettings -SourceList $srcList -DestinationList $dstList $mappingSettings = Get-PropertyMapping -SourceList $srcList -DestinationList $dstList $mappingSettings PropertyMappings : Author -> Author KEY Created -> Created Editor -> Editor Modified -> Modified Col1 -> MultipleColumn Col2 -> ───────┘ Col3 -> ───────┘ MyCustomField -> MyCustomField KEY Title -> Title ContentTypeMappings : UserAndGroupMappings : PermissionLevelMappings : SiteTemplateMappings :
Comments
0 comments
Please sign in to leave a comment.