製品のスキーマを拡張する
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Sitecore Content Hubで製品にカスタム ドメイン モデルを使用している場合、または製品定義をすでに拡張している場合、これらの設定は特定の要件と一致しない可能性があります。
Content Hub製品エンティティ定義を活用するために、Microsoft D365 Commerce - Content HubコネクタのSitecore Connectは、M.PCM.Productエンティティの次のフィールドを使用して、基本的な製品情報を同期し、Content Hub内のD365製品を反映します定義:
-
ProductName
-
ProductLabel
-
ProductNumber
-
ProductShortDescription
コネクタが正しく機能するには、次の追加フィールドをM.PCM.Productエンティティに追加する必要があります。
-
D365ProductNumber
-
D365ProductId
-
D365EntityId
-
D365EntityTranslations
-
DVCColorToProduct
-
DVCSizeToProduct
-
DVCStyleToProduct
-
DVCProductCategoryToProduct
-
ProductToGalleryAsset
-
ProductGalleryAssetsInSortedOrder
これらのフィールドは、コネクタのデフォルト機能と密接に関連しています。これらのフィールドに格納されているデータを手動で更新することはお勧めしません。
製品のスキーマを拡張するには、次の操作を行います。
-
M.PCM.Productエンティティの更新
-
グループにメンバーを追加D365 Commerce
-
URLMappingグループにメンバーを追加する
M.PCMを更新します。製品エンティティ
M.PCM.Productエンティティを更新するには:
-
Content Hubのメニュー バーで、Manageをクリックします。
-
Manageページで、「Schema」をクリックします。
-
検索ボックスに「 M.PCM.Product 」と入力して選択します。
-
M.PCM.Productエンティティの詳細ページで、New Groupをクリックします。
-
New member groupダイアログボックスで、次の値を入力し、「Save」をクリックします。
-
Name - D365Commerce
-
Label (English) - D365 Commerce
-
-
M.PCM.Productエンティティの詳細ページで、New Groupをクリックします。
-
New member groupダイアログボックスのNameフィールドにURLMappingと入力し、Label (English)フィールドにURLMappingと入力します。
-
「 Save」をクリックします。
D365 Commerceグループにメンバーを追加する
D365ProductNumberメンバーをD365 Commerceグループに追加するには:
-
左側のウィンドウで、D365 Commerceメンバーシップグループを選択し、New memberをクリックします。
-
New memberダイアログで、「 Property」を選択します。
-
データ タイプのリストからStringを選択し、Nextをクリックします。
-
D365ProductNumberメンバーには、次の設定を入力します。
-
Name - D365ProductNumber
-
Label (English) - D365 Product Number
-
Multilanguage -オフ
-
Unique -オフ
-
Include in content -オン
-
Include in autocomplete -オン
-
Allow Updates -オフ
-
Boost -オフ
-
Secured -オフ
-
Content type - Single line
-
-
「 Save」をクリックします。
-
手順1から5を繰り返して、次のメンバーを追加します。
Type
Name
Label
Settings
Property -糸
D365ProductId
D365 Product ID
-
Multilanguage -オフ
-
Unique -オフ
-
Include in content -オン
-
Include in autocomplete -オフ
-
Allow Updates -オフ
-
Boost -オフ
-
Secured -オフ
-
Content type - 単線
Property -糸
D365EntityId
D365 Entity Id
-
Multilanguage -オフ
-
Unique -オフ
-
Include in content -オフ
-
Include in autocomplete -オフ
-
Allow Updates -オフ
-
Boost -オフ
-
Secured -オフ
-
Content type - 単線
Property -糸
D365EntityTranslations
D365 Entity Translations
-
Multilanguage -オフ
-
Unique -オフ
-
Include in content -オフ
-
Include in autocomplete -オフ
-
Allow Updates -オン
-
Boost -オフ
-
Secured -オフ
-
Content type - 単線
-
-
D365 Commerceメンバーシップ グループを選択した状態で、New memberをクリックします。
-
New memberダイアログで、「TAXONOMY」の横にある「Select」をクリックします。
-
New memberダイアログの「General information」タブで、次のように入力します。
-
Name - DVCColorToProduct
-
Label (英語) - Product color
-
Associated label - Products
-
Associated definition - DVC.Color
-
Cardinality - OneToMany
-
-
「 Conditional 」タブをクリックし、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。
手記オプションとしてM.PCM.Product.IsVariantが表示されない場合は、スキーマに移動し、Enable/Disableダイアログ ボックスでVariantsスイッチをクリックしてアクティブにします (オン)。
-
「 Advanced 」タブをクリックし、「 Allow updates 」をクリックしてアクティブにします(オン)。
-
「 Save」をクリックします。
ProductGalleryAssetsInSortedOrderメンバーをURLMappingグループに追加するには:
-
左側のウィンドウで、URLMappingメンバーシップ グループを選択し、New memberをクリックします。
-
New memberダイアログボックスで、「 Property」を選択します。
-
データタイプリストから「 String」を選択し、「 Next」をクリックします。
-
次の設定を入力します。
-
Name - ProductGalleryAssetsInSortedOrder
-
Label (English) - Product Gallery Assets in Sorted Order
-
Multilanguage -オフ
-
Unique -オフ
-
Include in content-オン
-
Include in autocomplete -オフ
-
Allow Updates - (オン)
-
Boost -オフ
-
Secured -オフ
-
Content type - Multi-line.
-
-
「 Save」をクリックします。
D365 CommerceグループにDVCStyleToProductを追加するには:
-
左側のウィンドウでD365 Commerceメンバーシップグループを選択した状態で、New memberをクリックします。
-
New memberダイアログで、「TAXONOMY」の横にある「Select」をクリックし、「Next」をクリックします。
-
New memberダイアログの「General information」タブで、次の情報を入力します。
-
Name - DVCStyleToProduct
-
Label (英語) - Product style
-
Associated label - Products
-
Associated definition - DVC.Style
-
Cardinality - OneToMany.
-
-
「 Conditional 」タブをクリックし、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。
-
Advancedタブをクリックし、Allow updatesスイッチをクリックしてアクティブにします(オン)。
-
「 Save」をクリックします。
-
ステップ1から6を繰り返して、次の値を使用して新しいメンバーを追加します。
Type
Name
Label
Settings
関係
DVCSizeToProduct
Product size
-
Associated label -プロダクツ
-
Associated definition - DVC.サイズ
-
Cardinality - ワン・ツー・メニー
-
-
DVCSizeToProduct詳細ページで、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。
-
「 Advanced 」タブをクリックし、「 Allow updates 」スイッチをクリックしてアクティブにしてから、「 Save」をクリックします。
-
Apply changesをクリックして更新を確定します。
URLMappingグループにProductToGalleryAssetリレーションを追加するには:
-
左側のウィンドウでURLMappingメンバーシップグループを選択した状態で、New memberをクリックします。
-
New memberダイアログボックスで、「 RELATION」を選択し、「 Next」をクリックします。
-
New memberダイアログ ボックスのGeneral informationタブで、次の設定を入力します。
-
Name - ProductToGalleryAssets
-
Label (英語) - Gallery Assets
-
Associated label - Product Gallery
-
Associated definition - M.Asset
-
Cardinality - ManyToMany.
-
-
「 Advanced 」タブをクリックし、次のスイッチをクリックしてアクティブにします(オン)。
-
Content Copied
-
Completion Copied
-
Allow navigation
-
Inherits security
-
Allow updates
-
-
「 Save」をクリックします。
-
Apply changesをクリックして更新を確定します。