1. What is UI Builder
  2. Create custom workspace
  3. Event Mapping Script – Link to destination
  4. Important UI Builder Component

Learn how to master event mapping and scripting using UI Builder in this tutorial. Dive deep into UI Builder’s capabilities and optimize your workflow! Using event mapping how can we redirect to a another page in servicenow.

Script: Link to destination

/**
* @param {params} params
* @param {api} params.api
* @param {any} params.event
*/
function evaluateEvent({api, event}) {
	return {
		route: "list-item",
		fields: {"tableName":event.payload.params.table},
		params: {"tableName":event.payload.params.table,"queryFilter":event.payload.params.query},
		redirect: null,
		passiveNavigation: null,
		title: null,
		multiInstField: null,
		targetRoute: null,
		external: null,
		navigationOptions: null
	};
}

Total Views: 1215

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *