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.
-
Create a new script or reuse an existing one.
-
Deploy the script. For more information about creating or deploying a script, see Creating a Script Record or Use the Script Deployment Record.
-
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.
-
Click the Context Filtering subtab to show the Localization Context interface.
-
Clear the Select All box so you can edit the Localization Context field.
-
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.
-
Click the double arrows to open the popup. Use the menu or the Search field to find the country faster.
-
You can also search for countries manually.
-
-
-
Select one or more countries. They'll show up in the right column.
-
Click Done to close the window.
-
Click Save.