製品のスキーマを拡張する

日本語翻訳に関する免責事項

このページの翻訳は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エンティティを更新するには:

  1. Content Hubのメニュー バーで、Manageをクリックします。

  2. Manageページで、「Schema」をクリックします。

  3. 検索ボックスに「 M.PCM.Product 」と入力して選択します。

  4. M.PCM.Productエンティティの詳細ページで、New Groupをクリックします。

  5. New member groupダイアログボックスで、次の値を入力し、「Save」をクリックします。

    • Name - D365Commerce

    • Label (English) - D365 Commerce

  6. M.PCM.Productエンティティの詳細ページで、New Groupをクリックします。

  7. New member groupダイアログボックスのNameフィールドにURLMappingと入力し、Label (English)フィールドにURLMappingと入力します。

  8. Save」をクリックします。

D365 Commerceグループにメンバーを追加する

D365ProductNumberメンバーをD365 Commerceグループに追加するには:

  1. 左側のウィンドウで、D365 Commerceメンバーシップグループを選択し、New memberをクリックします。

  2. New memberダイアログで、「 Property」を選択します。

  3. データ タイプのリストからStringを選択し、Nextをクリックします。

  4. D365ProductNumberメンバーには、次の設定を入力します。

    • Name - D365ProductNumber

    • Label (English) - D365 Product Number

    • Multilanguage -オフ

    • Unique -オフ

    • Include in content -オン

    • Include in autocomplete -オン

    • Allow Updates -オフ

    • Boost -オフ

    • Secured -オフ

    • Content type - Single line

  5. Save」をクリックします。

  6. 手順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 - 単線

  7. D365 Commerceメンバーシップ グループを選択した状態で、New memberをクリックします。

  8. New memberダイアログで、「TAXONOMY」の横にある「Select」をクリックします。

  9. New memberダイアログの「General information」タブで、次のように入力します。

    • Name - DVCColorToProduct

    • Label (英語) - Product color

    • Associated label - Products

    • Associated definition - DVC.Color

    • Cardinality - OneToMany

  10. Conditional 」タブをクリックし、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。

    手記

    オプションとしてM.PCM.Product.IsVariantが表示されない場合は、スキーマに移動し、Enable/Disableダイアログ ボックスでVariantsスイッチをクリックしてアクティブにします (オン)。

  11. Advanced 」タブをクリックし、「 Allow updates 」をクリックしてアクティブにします(オン)。

  12. Save」をクリックします。

ProductGalleryAssetsInSortedOrderメンバーをURLMappingグループに追加するには:

  1. 左側のウィンドウで、URLMappingメンバーシップ グループを選択し、New memberをクリックします。

  2. New memberダイアログボックスで、「 Property」を選択します。

  3. データタイプリストから「 String」を選択し、「 Next」をクリックします。

  4. 次の設定を入力します。

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

  5. Save」をクリックします。

D365 CommerceグループにDVCStyleToProductを追加するには:

  1. 左側のウィンドウでD365 Commerceメンバーシップグループを選択した状態で、New memberをクリックします。

  2. New memberダイアログで、「TAXONOMY」の横にある「Select」をクリックし、「Next」をクリックします。

  3. New memberダイアログの「General information」タブで、次の情報を入力します。

    • Name - DVCStyleToProduct

    • Label (英語) - Product style

    • Associated label - Products

    • Associated definition - DVC.Style

    • Cardinality - OneToMany.

  4. Conditional 」タブをクリックし、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。

  5. Advancedタブをクリックし、Allow updatesスイッチをクリックしてアクティブにします(オン)。

  6. Save」をクリックします。

  7. ステップ1から6を繰り返して、次の値を使用して新しいメンバーを追加します。

    Type

    Name

    Label

    Settings

    関係

    DVCSizeToProduct

    Product size

    • Associated label -プロダクツ

    • Associated definition - DVC.サイズ

    • Cardinality - ワン・ツー・メニー

  8. DVCSizeToProduct詳細ページで、リストから「 M.PCM.Product.IsVariant」を選択し、「 Add」をクリックします。

  9. Advanced 」タブをクリックし、「 Allow updates 」スイッチをクリックしてアクティブにしてから、「 Save」をクリックします。

  10. Apply changesをクリックして更新を確定します。

URLMappingグループにProductToGalleryAssetリレーションを追加するには:

  1. 左側のウィンドウでURLMappingメンバーシップグループを選択した状態で、New memberをクリックします。

  2. New memberダイアログボックスで、「 RELATION」を選択し、「 Next」をクリックします。

  3. New memberダイアログ ボックスのGeneral informationタブで、次の設定を入力します。

    • Name - ProductToGalleryAssets

    • Label (英語) - Gallery Assets

    • Associated label - Product Gallery

    • Associated definition - M.Asset

    • Cardinality - ManyToMany.

  4. Advanced 」タブをクリックし、次のスイッチをクリックしてアクティブにします(オン)。

    • Content Copied

    • Completion Copied

    • Allow navigation

    • Inherits security

    • Allow updates

  5. Save」をクリックします。

  6. Apply changesをクリックして更新を確定します。

この記事を改善するための提案がある場合は、 お知らせください!