Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.
Befehl
Save-PropertyMapping
Beschreibung
Der Befehl zum Speichern aller Eigenschaftenzuordnungen für eine bestimmte Quell- und Zielliste.
Beispiele
Benutzerdefinierte Zuordnungen für eine Quellliste und eine Zielliste speichern
# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"
# Get the source list from the source site
$srcList = Get-List -Name "mysrclist" -Site $srcSite
# Get the destination list from the destination site
$dstList = Get-List -Name "mydstlist" -Site $dstSite
# Retrieve existing property mappings between the source and destination lists
$mappingSettings = Get-PropertyMapping -SourceList $srcList -DestinationList $dstList
# Display the current property mappings
$mappingSettings
# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# <NO SOURCE> -> MultipleColumn
# MyCustomField -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :
# Add a new property mapping for multiple source columns to a single destination column
$mappingSettings = Set-PropertyMapping -MappingSettings $mappingSettings -Source Col1,Col2,Col3 -Destination MultipleColumn
# Save the updated property mappings back to the source and destination lists
$mappingSettings = Save-PropertyMapping -MappingSettings $mappingSettings -SourceList $srcList -DestinationList $dstList
# Retrieve the updated property mappings to verify the changes
$mappingSettings = Get-PropertyMapping -SourceList $srcList -DestinationList $dstList
# Display the updated property mappings
$mappingSettings
# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# Col1 -> MultipleColumn
# Col2 -> ───────┘
# Col3 -> ───────┘
# MyCustomField -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :
Syntax
Save-PropertyMapping
-MappingSettings <MappingSettings>
-SourceList <List>
-DestinationList <List>
Save-PropertyMapping
-MappingSettings <MappingSettings>
-FromFileSystem <SwitchParameter>
-DestinationList <List>
Parameter
-DestinationList <List>
Gibt die Zielliste an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-FromFileSystem <SwitchParameter>
Gibt an, dass die Quelle das Dateisystem ist.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | FileSystem |
Aliase | None |
-MappingSettings <MappingSettings>
Gibt die Zuordnungseinstellungen an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | True (ByValue, ByPropertyName) |
Platzhalterzeichen zulässig? | False |
Parametersatzname | (All) |
Aliase | None |
-SourceList <List>
Gibt die Quellliste an.
Erforderlich? | True |
Standardwert | None |
Pipelineeingabe zulässig? | False |
Platzhalterzeichen zulässig? | False |
Parametersatzname | Default |
Aliase | None |
Dieser Artikel wurde mit künstlicher Intelligenz übersetzt. Bei Unklarheiten konsultieren Sie bitte die englische Originalversion.
