Рет қаралды 8,195
Steps for creating a UXF Client Action, Related List Declarative Action that uses the multi record associator component in Service Operations Workspace or any Configurable Workspace. This is duplicating the Add affected ci's functionality.
Ashley Snyder's article:
www.servicenow.com/community/...
Relevant tables:
sys_declarative_action_assignment
sys_declarative_action_payload_definition
sys_ux_addon_event_mapping
Other copy pasta:
record_page_tabs_1 = Source element ID in sys_ux_addon_event_mapping
Target payload mapping JSON:
{
"type": "MAP_CONTAINER",
"container": {
"route": {
"type": "JSON_LITERAL",
"value": "mra"
},
"size": {
"type": "JSON_LITERAL",
"value": "lg"
},
"fields": {
"type": "MAP_CONTAINER",
"container": {
"label": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["label"]
}
},
"userGivenTable": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["userGivenTable"]
}
},
"table": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["table"]
}
},
"parentRecordSysId": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["parentRecordSysId"]
}
},
"parentFieldName": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["parentFieldName"]
}
},
"referencedFieldName": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["referencedFieldName"]
}
},
"extensionPoint": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["extensionPoint"]
}
},
"view": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["view"]
}
},
"columns": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["columns"]
}
},
"type": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["type"]
}
},
"hideSelectAll": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["hideSelectAll"]
}
},
"relatedListName": {
"type": "EVENT_PAYLOAD_BINDING",
"binding": {
"address": ["relatedListName"]
}
}
}
},
"params": {
"type": "JSON_LITERAL",
"value": {}
}
}
}