Create a UX add-on event mapping

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Connect a button to a modal using UX add-on event mapping in order for an action button to open a custom modal.

    시작하기 전에

    Role required: admin

    프로시저

    1. Open the add-on event mapping <instance-name>.service-now.com/sys_ux_addon_event_mapping_list.do into your browser.
    2. Create a new record by selecting New.
    3. Enter a name for your map.
    4. Select ui_action_bar for the Source element ID field.
    5. Select the action name for your declarative action for the Source Declarative Action field.
    6. Set the macroponent to the workspace record macroponent using the sysID copied from the record's page definition.
    7. Trigger the event to open a modal by selecting [Record Page] Open modal in the Target Event field.
    8. Define the fields to send to the modal by pasting the JSON object into the Target Payload Mapping field.
      {
      	"type": "MAP_CONTAINER",
      	"container": {
      		"route": {
      			"type": "EVENT_PAYLOAD_BINDING",
      			"binding": {
      				"address": ["route"]
      			}
      		},
      		"size": {
      			"type": "EVENT_PAYLOAD_BINDING",
      			"binding": {
      				"address": ["size"]
      			}
      		},
      		"fields": {
      			"type": "EVENT_PAYLOAD_BINDING",
      			"binding": {
      				"address": ["fields"]
      			}
      		},
      		"params": {
      			"type": "EVENT_PAYLOAD_BINDING",
      			"binding": {
      				"address": ["params"]
      			}
      		}
      	}
      }
    9. Select Submit.