Multi Context and Locales

Prev Next

Data syndication based on multiple contexts and locales

The PIM module allows you to syndicate the data to Syndication in multiple contexts and multiple locales within a required context. For example, if we have multiple contexts such as Germany and France, then the data associated with these contexts can be syndicated to Syndication. Similarly, if we have multiple locales such as de-DE and fr-FR in the Global context, then the data associated with these locales can also be syndicated to Syndication. This can be performed via a business rule or PIM UI.

Note:

While the data syndication in multiple contexts and multiple locales is supported, it is not recommended to use locales associated with one context in any other context. For example, if you have a German locale associated with Germany context, then you must not use the same locale in any other context.

Data syndication using business rule

The PIM module allows you to syndicate the data to the Syndication module via a business rule (BR). The following is a sample BR used to syndicate data from PIM to Syndication in the Global context and en-US locale.

IIF[HaveAttributesChanged["_DEFAULT","_DEFAULT","descriptionShort"],InvokeConnectorService["_DEFAULT","_DEFAULT","item","syndicate","eds-csl","syndicate"],false]

The PIM module supports the following:

Data syndication in multiple locales using business rule

The PIM module allows you to syndicate the data to the Syndication module for multiple locales within a required context. For example, if we have locales en-US and fr-FR in the Global context, then the data associated with these locales can be syndicated via BR.
Scenario: Let us consider syndicating the below-mentioned entity.

Entity Tender Coconut
Entity Type Item
Attribute Name GDSN Short Description
Context Global
Locales English (en-US) and French (fr-FR)

The following sample BR is used to syndicate the data for en-US and fr-FR locales in the Global context, considering the GDSN Short Description attribute.

IIF[HaveAttributesChanged["_DEFAULT","_DEFAULT","descriptionShort"],InvokeConnectorService["en-US||fr-FR","_DEFAULT","item","syndicate","eds-csl","syndicate"],false]
Notes:

When the value of GDSN Short Description is updated in the Global context and en-US locale, the BR is triggered.
MLMC_BR1

Result: The updated value is syndicated to the en-US and fr-FR locales in Syndication.

The GDSN Short Description values for the en-US and fr-FR locales in PIM:
MLMC_MultiLocaleEDS

The GDSN Short Description values for the en-US and fr-FR locales in Syndication:
MLMC_MultiLocaleCES

Data syndication in all locales using business rule

The PIM module allows you to syndicate the data to the Syndication module for all the available locales within a required context. For example, if the available locales are en-US, de-DE, and fr-FR in the Global context, then the data associated with these locales can be syndicated via BR.
Scenario: Let us consider syndicating the below-mentioned entity.

Entity Tender Coconut
Entity Type Item
Attribute Name GDSN Short Description
Context Global
Locales English (en-US), German (de-DE), and French (fr-FR)

The following sample BR is used to syndicate the data for en-US, de-DE, and fr-FR in the Global context, considering the GDSN Short Description attribute:

IIF[HaveAttributesChanged["_DEFAULT","_DEFAULT","descriptionShort"],InvokeConnectorService["_ALL","_DEFAULT","item","syndicate","eds-csl","syndicate"],false]
Notes:

When the value of GDSN Short Description is updated in the Global context and en-US locale, the BR is triggered.
MLMC_BR2

Result: The updated value is syndicated to en-US, de-DE, and fr-FR locales in Syndication.

The GDSN Short Description values for en-US, de-DE, and fr-FR locales in PIM:
MLMC_ALLEDS

The GDSN Short Description values for en-US, de-DE, and fr-FR locales in Syndication:
MLMC_ALLCES

Data syndication in multiple contexts using business rule

The PIM module allows you to syndicate the data to the Syndication module in multiple contexts. For example, if we have contexts Germany and France, then the data associated with these contexts can be syndicated via BR.
Scenario: Let us consider syndicating the below-mentioned entity.

Entity Tender Coconut
Entity Type Item
Attribute Name GDSN Short Description
Contexts Germany and France
Locales German (de-DE) and French (fr-FR)

The following sample BR is used to syndicate the data for Germany and France contexts, considering the GDSN Short Description attribute.

IIF[HaveAttributesChanged["_DEFAULT","_DEFAULT","descriptionShort"],InvokeConnectorService["de-DE||fr-FR","_DEFAULT","item","syndicate","eds-csl","syndicate"],false]
Notes:

When the value of GDSN Short Description is updated in the Global context and en-US locale, the BR is triggered.
MLMC_BR3

Result: The updated value is syndicated to de-DE and fr-FR locales in Syndication.

The GDSN Short Description values for de-DE and fr-FR locales in PIM:
MLMC_MultiContextEDS

The GDSN Short Description values for de-DE and fr-FR locales in Syndication:
MLMC_MultiContextCES

Data syndication using PIM UI

Scenario: Let us consider syndicating the below-mentioned entity.

Entity Tender Coconut
Entity Type Item
Attribute Name GDSN Short Description
Context Global
Locales German (de-DE) and French (fr-FR)

To syndicate the data in multiple locales using PIM UI, perform the following:

  1. Select the required entity.
    MLMC_SelectItem

  2. Select the required context. Here, we have selected the Global context.
    MLMC_SelectGLOBAL_UI

  3. Select the required locales. Here, we have selected the de-DE and fr-FR locales.
    MLMC_SelectLOCALES_UI

    Result: The selected locales are displayed on the Entity Manage page.

  4. Ensure to have the required attribute and its values within the entity. Here, we have considered the GDSN Short Description attribute values.

    MLMC_LocaleUI

    Click Business Actions > Ready for Syndication.
    MLMC_Actions

    Result: The attribute values for the selected locales are syndicated to Syndication.

View syndicated data in Syndication

Here, the GDSN Short Description values for de-DE and fr-FR locales are displayed in Syndication.
MLMC_LocaleCESUI

Note:

The PIM UI supports data syndication in multiple contexts and in all the available locales within a context.