Creating a Context-Aware Script

You can create a context-aware script by using two features: Record Localization Context and Context Association Rule. Record Localization Context lets you set a script's localization context, and Context Association Rule limits script deployment to records with a specific context.

  1. Create a new script or reuse an existing one.

  2. Deploy the script. For more information about creating or deploying a script, see Creating a Script Record or Use the Script Deployment Record.

  3. In the Script Deployment window, choose the target record type from the Applies To list.

    Note:

    You can only use record localization context with certain record types. For a list of supported records, see Records that Support Localization Context.

  4. Click the Context Filtering subtab to show the Localization Context interface.

  5. Clear the Select All box so you can edit the Localization Context field.

  6. Enter the name of the target country in the Localization Context field. There are a few ways to add countries:

    • Enter the full name of one or more countries.

    • Enter the first few letters of a country's name and click outside the Localization Context field. A popup will show countries starting with those letters. For example, if you type "Fr," the popup shows all countries starting with "Fr."

    • Search directly in the popup window.

      1. Click the double arrows to open the popup. Use the menu or the Search field to find the country faster.

      2. You can also search for countries manually.

  7. Select one or more countries. They'll show up in the right column.

  8. Click Done to close the window.

  9. Click Save.

Related Topics:

General Notices