Workspace Notification routing

SNOW User_03
Tera Contributor

Hello Community,

 

We have set up a workspace notification and its triggering correctly, however on click of the notification it redirects to classic UI instead opening a record in workspace itself.

 

This has been configured as per https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workspace/task/configure... 

 

Please advise.

4 REPLIES 4

Community Alums
Not applicable

hi @SNOW User_03 ,

can you share the configuration screenshot ?

 

josely
Tera Contributor

Facing same issue. Did you figure this out?

deesbe
Tera Contributor

Same issue here, would very much appreciate the help.

deesbe
Tera Contributor

Figured this one out. You have to add a new sys_ux_page_property in your Workspace called 'featureRoutes'.

It is of json type, and it is part of the default Service Operation Workspace. You can copy the code directly from there:

{
	"record": {
		"_default": {
			"routeInfo": {
				"route": "record",
				"fields": [
					{
						"name": "table",
						"mapping": {
							"address": "table"
						}
					},
					{
						"name": "sysId",
						"mapping": {
							"address": "sysId"
						}
					}
				],
				"params": [
					{
						"name": "selectedTabIndex",
						"mapping": {
							"address": "selectedTabIndex"
						}
					},
					{
						"name": "query",
						"mapping": {
							"address": "query"
						}
					}
				]
			}
		},
		"conditionalMappings": [
			{
				"matchingCriteria": {
					"table": [
						"kb_knowledge",
						"kb_template_faq",
						"kb_template_how_to",
						"kb_template_kcs_article",
						"kb_template_what_is"
					]
				},
				"routeInfo": {
					"route": "kb_view",
					"fields": [
						{
							"name": "table",
							"mapping": {
								"address": "table"
							}
						},
						{
							"name": "sysId",
							"mapping": {
								"address": "sysId"
							}
						}
					],
					"params": []
				}
			}
		]
	},
	"list": {
		"_default": {
			"routeInfo": {
				"route": "list",
				"fields": [],
				"params": [
					{
						"name": "listId",
						"mapping": {
							"address": "listId"
						}
					},
					{
						"name": "tinyId",
						"mapping": {
							"address": "tinyId"
						}
					}
				]
			}
		}
	},
	"inbox": {
		"_default": {
			"type": "`VIEWPORT`",
			"routeInfo": {
				"route": "inbox"
			},
			"viewportInfo": {
				"route": "inbox-sidebar",
				"fields": [
					{
						"name": "opened",
						"mapping": {
							"address": "opened"
						}
					}
				]
			}
		}
	}
}


Also, you can use regular Notification Next Experience Content and it will work dynamically rerouting to Core UI if use in on Core, or Workspace if user is on workspace.