Configuring OneSearch for Service Operations Workspace
Last updated
Last updated
Open UI Builder to the “Record” page of a desired workspace experience. Make sure you are on the desired page variant as well.
Click on the “Contextual Side Panel” component and then add a new tab using the “+Add” button. NOTE: If you don’t have the “+Add” button, skip Steps 2 and 3 and go to the Alternate Steps section, then return to Step 4)
Fill in the tab information and click “Create”.
UI Builder should redirect to a new page where you can design the tab layout. Select the “Body” component from the component tree. Click “Edit” in the Config tab.
In the modal, click the “+ Add” button to add a new page property. Name it “sysId” and then click “Add”. Click “+ Add” again to add another page property named “table” and then click “Add”. Repeat the steps one more time for a page property called “fields”. Save.
Edit the config properties on the “Body” component so that table points to “@data.gform.nowRecordFormBlob.table”, sysId points to “@data.gform.nowRecordFormBlob.sysId”, and fields points to “@data.gform.nowRecordFormBlob.fields” (use dynamic data binding).
Add the “YDS OneSearch - General Search Widget” component to the page.
Edit the config properties on the “YDS OneSearch - General Search Widget” component so that Table points to “@context.props.table”, Record points to “@context.props.sysId”, and Form fields points to “@context.props.fields” (use dynamic data binding).
Note: You do not need to set the “Searcher override” unless you are using the OneSearch component on a page that is not a record/form and do not have a “Table” and “Record” to pass in.
Save the changes and then go to a record on your workspace to verify the OneSearch component is visible.
See ServiceNow’s documentation for reference.