Product documentation Docs
    • English
    • Deutsch
    • 日本語
    • 한국어
    • Français
  • More Sites
    • Now Community
    • Developer Site
    • Knowledge Base
    • Product Information
    • ServiceNow.com
    • Training
    • Customer Success Center
    • ServiceNow Support Videos
  • Log in

Product documentation

  • Home
How search works:
  • Punctuation and capital letters are ignored
  • Special characters like underscores (_) are removed
  • Known synonyms are applied
  • The most relevant topics (based on weighting and matching to search terms) are listed first in search results
Topics are ranked in search results by how closely they match your search terms
  • A match on the entire phrase you typed
  • A match on part of the phrase you typed
  • A match on ALL of the terms in the phrase you typed
  • A match on ANY of the terms in the phrase you typed

Note: Matches in titles are always highly ranked.

  • Release version
    Table of Contents
    • Now Platform capabilities
Table of Contents
Choose your release version
    Home Orlando Now Platform Capabilities Now Platform capabilities Agent Workspace Setting up workspace Set up Record View in workspace Customizing workspace Set up custom actions on record fields in Workspace

    Set up custom actions on record fields in Workspace

    • Save as PDF Selected topic Topic & subtopics All topics in contents
    • Unsubscribe Log in to subscribe to topics and get notified when content changes.
    • Share this page

    Set up custom actions on record fields in Workspace

    Set up using a value in a reference field to take action. For example, add an icon in a field with a phone number to dial that phone number. Or, add an icon in a reference field that opens a user record in a tab.

    Before you begin

    Role required: admin

    A field decorator is an icon that's added to a reference field in the Form pane that an agent can click to perform some action. Workspace supports up to three decorators per field.

    The objective in setting up Workspace Action field decorators is to enable agents to do things on one page that otherwise would require opening additional pages. For example, instead of opening another page to display the record of the user named in an incident, the agent just clicks the Workspace Action field decorator in the Caller field to open the user record in a tab.


    User icon as field decorator

    The field action, Open Record, must exist as a Workspace Action definition before you create a new action assignment. The icon, icon-user, must be an icon available in your instance.

    Procedure

    1. Navigate to Workspace Experience > Actions & Components > Field Decorators.
      A list of existing field decorators appears.
    2. Click New.
    3. On the form, fill in the fields.

      The following table adds a field decorator icon to URL fields. When agents click the icon, the URL opens.

      Table 1. Action Assignment form
      Field Description
      Action label Name of the field decorator, for example, Open a URL. You can use double braces, {{}}, to insert values in the text at runtime, for example, {{count}}. For example, you can show the number of records an agent selects using braces.
      Action name Name that appears for this record in the list of action assignments: Workspace Experience > Actions & Components > Field Decorators, for example, open_a_url.
      Implemented as Client Action is the only valid selection for field decorators. The field decorator appears as an icon in a field, form, list, or related list. When clicked, the decorator performs an action, such as calling a phone number, opening a record, updating content, or opening a URL. UI component is a UI element that you can place in many areas in Workspace. Client Action dispatches an action specified in Specify client action. Server Script take actions on the server changing database records, such as adding, removing, or modifying them.
      Specify client action Click the magnifying glass icon (Magnifying glass icon) and select the action to take. To open a URL, select Open URL. This field only appears when Implemented as is Client Action. You cannot add custom actions to this list.
      Specify UI component Click the magnifying glass icon (Magnifying glass icon) and select the component to add. This field only appears when Implemented as is UI Component.
      Decorator applies to Field type means the decorator appears for all fields of this type. Specific field means the decorator appears only when the field you specify opens. Many specific fields are of the same field type. For example, select Field type to apply this field decorator icon to all URL fields.
      Field type Select the field type where you want the field decorator to appear, for example, Reference. Many fields are of type Reference. As another example, to dial a phone number, select Phone Number. This field, Field type only appears when Decorator applies to is Field type.
      Field name Select the field where you want the field decorator to appear. The choices of fields depends on the value of Table. For example, select Date. This field only appears when Decorator applies to is Specific field.
      Icon Clickable icon that appears in the field specified by Field type or Field name that initiates the action.
      Tooltip Text that displays when and agent hovers a mouse over the icon.
      Description Short description of this component.
      Application Application that this component applies to. Global means that the component applies to all applications.
      Workspace Workspace this component belongs in, for example, Agent Workspace, ITSM, CSM, and so forth.
      Table Table this component is tied to. When a record from this table opens, the field decorator appears in the field(s) specified by Field type or Field Name. The default is Global. You can leave the default value so that the field decorator icon appears for any open record that has the field specified by Field type. If you specify a table, then only when records from that table are open can the field decorator icon appear.
      View A set of visual configurations. This value is typically Workspace.
      Active Toggle to make this field decorator appear (selected) or not.
      Order An integer that governs the placement of this icon in the list of field decorators in a field. The lower the number, the further left in the list. The typical practice is to make these numbers hundreds, for example, 100, 200, 300, and 400, so you can put new icons between existing ones in the future.
    4. Right-click the top banner and select Save.
      Related links appear.
    5. (Optional) On the Action Exclusion tab, click New to exclude children tables from inheriting this component in the Contextual Side panel, or this table inheriting components from a parent table.
      Components in the Contextual Side panel appear according to the records open in Agent Workspace. Child tables inherit these components by default. You can prevent that from happening.
      1. On the form, fill in the fields.
        Table 2. Action Exclusion form
        Field Description
        Action assignment Click the magnifying glass icon (Magnifying glass icon) and select an action assignment, which specifies the
        Table Table associated with this component. Every time Agent Workspace opens a record from this table, this component's icon appears in the Contextual Side panel.
        Exclude this table Toggle to prevent this Table from inheriting this component from its parent tables.
        Exclude all child tables Toggle to prevent child tables of Table from inheriting this field decorator.
      2. Click Submit.
    6. Under Related Links, click Advanced view.
      Up to this point, you have not specified the URL you want to open when an agent clicks the field decorator icon. This is the task you perform in Advanced view.
    7. On the Action Attributes tab, in Payload Map, select the action attribute you want to define. In this example, select url.
    8. In the value field, enter the URL to open.
    9. (Optional) On the Conditions tab, in Script Condition, enter a script that can hide the field decorator.
    10. (Optional) On the Conditions tab, in Client Conditions, specify conditions on the client that would hide the field decorator.

      Client conditions are reevaluated whenever an agent makes a change in a list of records. For example, you might hide the button for a list action until an agent selects one or more records in a list. The client condition, then, is "count is greater than zero," where count is the number of records selected.

    11. (Optional) On the Conditions tab, in Record Conditions, specify a field and a value such that if an open record has a field with that value, the field decorator icon would not appear.
    12. (Optional) On the Conditions tab, in Required Roles, specify roles an agent must have to see the field decorator.
    13. (Optional) On the Confirmations Settings tab, select the Confirmation Required check box if you want to display a pop up that asks the agent to confirm the action to be taken by the field decorator.
    14. Click Update.

    Result

    The field decorator icon appears in all record fields of type reference for all of the tables you specified in Table. Clicking an icon would open the URL specified in the Payload Map.


    User icon as field decorator

    Tags:

    Feedback
    On this page

    Previous topic

    Next topic

    • Contact Us
    • Careers
    • Terms of Use
    • Privacy Statement
    • Sitemap
    • © ServiceNow. All rights reserved.

    Release version
    Choose your release version

      Set up custom actions on record fields in Workspace

      • Save as PDF Selected topic Topic & subtopics All topics in contents
      • Unsubscribe Log in to subscribe to topics and get notified when content changes.
      • Share this page

      Set up custom actions on record fields in Workspace

      Set up using a value in a reference field to take action. For example, add an icon in a field with a phone number to dial that phone number. Or, add an icon in a reference field that opens a user record in a tab.

      Before you begin

      Role required: admin

      A field decorator is an icon that's added to a reference field in the Form pane that an agent can click to perform some action. Workspace supports up to three decorators per field.

      The objective in setting up Workspace Action field decorators is to enable agents to do things on one page that otherwise would require opening additional pages. For example, instead of opening another page to display the record of the user named in an incident, the agent just clicks the Workspace Action field decorator in the Caller field to open the user record in a tab.


      User icon as field decorator

      The field action, Open Record, must exist as a Workspace Action definition before you create a new action assignment. The icon, icon-user, must be an icon available in your instance.

      Procedure

      1. Navigate to Workspace Experience > Actions & Components > Field Decorators.
        A list of existing field decorators appears.
      2. Click New.
      3. On the form, fill in the fields.

        The following table adds a field decorator icon to URL fields. When agents click the icon, the URL opens.

        Table 1. Action Assignment form
        Field Description
        Action label Name of the field decorator, for example, Open a URL. You can use double braces, {{}}, to insert values in the text at runtime, for example, {{count}}. For example, you can show the number of records an agent selects using braces.
        Action name Name that appears for this record in the list of action assignments: Workspace Experience > Actions & Components > Field Decorators, for example, open_a_url.
        Implemented as Client Action is the only valid selection for field decorators. The field decorator appears as an icon in a field, form, list, or related list. When clicked, the decorator performs an action, such as calling a phone number, opening a record, updating content, or opening a URL. UI component is a UI element that you can place in many areas in Workspace. Client Action dispatches an action specified in Specify client action. Server Script take actions on the server changing database records, such as adding, removing, or modifying them.
        Specify client action Click the magnifying glass icon (Magnifying glass icon) and select the action to take. To open a URL, select Open URL. This field only appears when Implemented as is Client Action. You cannot add custom actions to this list.
        Specify UI component Click the magnifying glass icon (Magnifying glass icon) and select the component to add. This field only appears when Implemented as is UI Component.
        Decorator applies to Field type means the decorator appears for all fields of this type. Specific field means the decorator appears only when the field you specify opens. Many specific fields are of the same field type. For example, select Field type to apply this field decorator icon to all URL fields.
        Field type Select the field type where you want the field decorator to appear, for example, Reference. Many fields are of type Reference. As another example, to dial a phone number, select Phone Number. This field, Field type only appears when Decorator applies to is Field type.
        Field name Select the field where you want the field decorator to appear. The choices of fields depends on the value of Table. For example, select Date. This field only appears when Decorator applies to is Specific field.
        Icon Clickable icon that appears in the field specified by Field type or Field name that initiates the action.
        Tooltip Text that displays when and agent hovers a mouse over the icon.
        Description Short description of this component.
        Application Application that this component applies to. Global means that the component applies to all applications.
        Workspace Workspace this component belongs in, for example, Agent Workspace, ITSM, CSM, and so forth.
        Table Table this component is tied to. When a record from this table opens, the field decorator appears in the field(s) specified by Field type or Field Name. The default is Global. You can leave the default value so that the field decorator icon appears for any open record that has the field specified by Field type. If you specify a table, then only when records from that table are open can the field decorator icon appear.
        View A set of visual configurations. This value is typically Workspace.
        Active Toggle to make this field decorator appear (selected) or not.
        Order An integer that governs the placement of this icon in the list of field decorators in a field. The lower the number, the further left in the list. The typical practice is to make these numbers hundreds, for example, 100, 200, 300, and 400, so you can put new icons between existing ones in the future.
      4. Right-click the top banner and select Save.
        Related links appear.
      5. (Optional) On the Action Exclusion tab, click New to exclude children tables from inheriting this component in the Contextual Side panel, or this table inheriting components from a parent table.
        Components in the Contextual Side panel appear according to the records open in Agent Workspace. Child tables inherit these components by default. You can prevent that from happening.
        1. On the form, fill in the fields.
          Table 2. Action Exclusion form
          Field Description
          Action assignment Click the magnifying glass icon (Magnifying glass icon) and select an action assignment, which specifies the
          Table Table associated with this component. Every time Agent Workspace opens a record from this table, this component's icon appears in the Contextual Side panel.
          Exclude this table Toggle to prevent this Table from inheriting this component from its parent tables.
          Exclude all child tables Toggle to prevent child tables of Table from inheriting this field decorator.
        2. Click Submit.
      6. Under Related Links, click Advanced view.
        Up to this point, you have not specified the URL you want to open when an agent clicks the field decorator icon. This is the task you perform in Advanced view.
      7. On the Action Attributes tab, in Payload Map, select the action attribute you want to define. In this example, select url.
      8. In the value field, enter the URL to open.
      9. (Optional) On the Conditions tab, in Script Condition, enter a script that can hide the field decorator.
      10. (Optional) On the Conditions tab, in Client Conditions, specify conditions on the client that would hide the field decorator.

        Client conditions are reevaluated whenever an agent makes a change in a list of records. For example, you might hide the button for a list action until an agent selects one or more records in a list. The client condition, then, is "count is greater than zero," where count is the number of records selected.

      11. (Optional) On the Conditions tab, in Record Conditions, specify a field and a value such that if an open record has a field with that value, the field decorator icon would not appear.
      12. (Optional) On the Conditions tab, in Required Roles, specify roles an agent must have to see the field decorator.
      13. (Optional) On the Confirmations Settings tab, select the Confirmation Required check box if you want to display a pop up that asks the agent to confirm the action to be taken by the field decorator.
      14. Click Update.

      Result

      The field decorator icon appears in all record fields of type reference for all of the tables you specified in Table. Clicking an icon would open the URL specified in the Payload Map.


      User icon as field decorator

      Tags:

      Feedback

          Share this page

          Got it! Feel free to add a comment
          To share your product suggestions, visit the Idea Portal.
          Please let us know how to improve this content

          Check any that apply

          To share your product suggestions, visit the Idea Portal.
          Confirm

          We were unable to find "Coaching" in Jakarta. Would you like to search instead?

          No Yes
          • Contact Us
          • Careers
          • Terms of Use
          • Privacy Statement
          • Sitemap
          • © ServiceNow. All rights reserved.

          Subscribe Subscribed Unsubscribe Last updated: Tags: January February March April May June July August September October November December No Results Found Versions Search preferences successfully updated My release version successfully updated My release version successfully deleted An error has occurred. Please try again later. You have been unsubscribed from all topics. You are now subscribed to and will receive notifications if any changes are made to this page. You have been unsubscribed from this content Thank you for your feedback. Form temporarily unavailable. Please try again or contact  docfeedback@servicenow.com  to submit your comments. The topic you requested does not exist in the release. You were redirected to a related topic instead. The available release versions for this topic are listed There is no specific version for this documentation. Explore products Click to go to the page. Release notes and upgrades Click to open the dropdown menu. Delete Remove No selected version Reset This field is required You are already subscribed to this topic Attach screenshot The file you uploaded exceeds the allowed file size of 20MB. Please try again with a smaller file. Please complete the reCAPTCHA step to attach a screenshot
          Log in to personalize your search results and subscribe to topics
          No, thanks Login