注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。
コマンド
Save-PropertyMapping
説明
特定の移行元リストと移行先リストのすべてのプロパティ マッピングを保存するコマンドです。
例
移行元リストと移行先リストのカスタム マッピングを保存する
# 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 :
構文
Save-PropertyMapping
-MappingSettings <MappingSettings>
-SourceList <List>
-DestinationList <List>
Save-PropertyMapping
-MappingSettings <MappingSettings>
-FromFileSystem <SwitchParameter>
-DestinationList <List>
パラメーター
-DestinationList <List>
移行先のリストを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-FromFileSystem <SwitchParameter>
移行元がファイルシステムであることを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | FileSystem |
エイリアス | None |
-MappingSettings <MappingSettings>
マッピング設定を指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | True (ByValue, ByPropertyName) |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | (All) |
エイリアス | None |
-SourceList <List>
移行元のリストを指定します。
必須かどうか | True |
既定値 | None |
パイプライン入力を許可するか | False |
ワイルドカード文字を許可するか | False |
パラメーターセット名 | Default |
エイリアス | None |
この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。
