Zum Hauptinhalt springen

Get-PropertyMapping

Hinweis: Für die PowerShell-Integration ist ein ShareGate Migrate Pro- oder Enterprise-Abonnement erforderlich. Sie ist im Essentials-Plan nicht verfügbar.

Befehl

Get-PropertyMapping

Beschreibung

Der Befehl zum Abrufen der Eigenschaftenzuordnungen aus einem Quell- und Zielliste-Paar.

Beispiele

Zuordnungen aus einer Quell- und Zielliste abrufen

# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve the source list from the source site
$srcList = Get-List -Name "mysrclist" -Site $srcSite

# Retrieve 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 retrieved 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 :

Zuordnungen aus dem Dateisystem und einer Zielliste abrufen

# Connect to the destination site
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve the destination list from the destination site
$dstList = Get-List -Name "mydstlist" -Site $dstSite

# Load property mappings from a file system and associate them with the destination list
$mappingSettings = Get-PropertyMapping -FromFileSystem -DestinationList $dstList

# Display the retrieved property mappings
$mappingSettings

# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# <NO SOURCE> -> MultipleColumn
# <NO SOURCE> -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :

Zuordnungen mit Zuordnungen aus Quellliste und Zielliste zusammenführen

# Set an initial property mapping for multiple source columns to a single destination column
$mappingSettings = Set-PropertyMapping -Source Col1,Col2,Col3 -Destination MultipleColumn

# Connect to the source and destination sites
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysourcesite"
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve the source list from the source site
$srcList = Get-List -Name "mysrclist" -Site $srcSite

# Retrieve the destination list from the destination site
$dstList = Get-List -Name "mydstlist" -Site $dstSite

# Retrieve the property mappings, merging the initial mapping settings with the source and destination lists
$mappingSettings = Get-PropertyMapping -MappingSettings $mappingSettings -SourceList $srcList -DestinationList $dstList

# Display the final 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 :

Zuordnungen aus Box und einer Zielliste abrufen

# Connect to the Box environment using an admin account
$box = Connect-Box -Email [email protected] -Admin

# Connect to the destination site
$dstSite = Connect-Site -Url "http://myfarm1/sites/mydestinationsite"

# Retrieve the destination list from the destination site
$dstList = Get-List -Name "mydstlist" -Site $dstSite

# Retrieve property mappings between the Box environment and the destination list
$mappingSettings = Get-PropertyMapping -Box $box -DestinationList $dstList

# Display the retrieved property mappings
$mappingSettings

# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# MetadataTemplate_Text -> MetadataTemplate_Text
# <NO SOURCE> -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :
# SensitivityLabelMappings :

Syntax

Get-PropertyMapping
-SourceList <List>
-DestinationList <List>
[-MappingSettings <MappingSettings>]
Get-PropertyMapping
-FromFileShare <SwitchParameter>
-DestinationList <List>
[-MappingSettings <MappingSettings>]
Get-PropertyMapping
-Box <BoxInfo>
-DestinationList <List>
[-MappingSettings <MappingSettings>]

Parameter

-Box <BoxInfo>

Gibt die Quell-Box an.

Erforderlich?

True

Standardwert

None

Pipelineeingabe zulässig?

True (ByValue, ByPropertyName)

Platzhalterzeichen zulässig?

False

Parametersatzname

Box

Aliase

None

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

Erforderlich?

False

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.

Hat dies deine Frage beantwortet?