メインコンテンツにスキップ

Import-PropertyMapping

注: PowerShellとの連携には、ShareGate MigrateのProまたはEnterpriseサブスクリプションが必要です。Essentialsプランでは利用できません。

コマンド

Import-PropertyMapping

説明

ファイルからプロパティ マッピングをインポートするコマンドです。

ファイルからマッピングをインポートする

# Import property mappings from a file
$mappingSettings = Import-PropertyMapping -Path "C:\MyMappings\MyPropertyMappingsFileName.sgpm"

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

ファイルからのマッピングを既存のマッピングとマージする

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

# Import additional property mappings from a file and merge with the existing settings
$mappingSettings = Import-PropertyMapping -MappingSettings $mappingSettings -Path "C:\MyMappings\MyPropertyMappingsFileName.sgpm"

# Display the updated property mappings
$mappingSettings

# Example output:
# PropertyMappings : Author -> Author
# KEY Created -> Created
# Editor -> Editor
# Modified -> Modified
# Col1 -> Multiple Column
# Col2 -> ────────┘
# Col3 -> ────────┘
# MyCustomField -> MyCustomField
# KEY Title -> Title
# ContentTypeMappings :
# UserAndGroupMappings :
# PermissionLevelMappings :
# SiteTemplateMappings :

構文

Import-PropertyMapping
-Path <String>
[-MappingSettings <MappingSettings>]

パラメーター

-MappingSettings <MappingSettings>

マッピング設定を指定します。このコマンドは、既存のマッピング設定オブジェクトに複数のマッピング設定を追加します。詳細については、複数のマッピングファイルを同時に使用するを参照してください。

必須かどうか

False

既定値

None

パイプライン入力を許可するか

True (ByValue, ByPropertyName)

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

None

-Path <String>

以前にShareGateでエクスポートされたファイル パスを指定します。

必須かどうか

True

既定値

None

パイプライン入力を許可するか

False

ワイルドカード文字を許可するか

False

パラメーターセット名

(All)

エイリアス

PSPath

この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。

こちらの回答で解決しましたか?