Creation of the Location field in Service Portal

Sirri
Tera Guru

Hi All,

 

I had Requirement Creation of Location(cmn_location) field in service Portal. That will be show as Active locations.

 

How can I achieve this. Please let us know.

 

Please provide the any document are articles regarding that. It will helpful to me.

 my requirement is to create Location field at the highlighted position.

Sirri_0-1701163756419.png

 

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @Sirri 

In short, you need to create a portal page then add a simple list widget and configure that to display records from cmn_location table, then create a menu entry in SP Header Menu for the page we created.

 

Follow along for step by step guide.

 

1. Create a Portal page by navigating to Service Portal -> Pages then click on New button in right top corner, and fill in all the fields like the one below and save the form.

AnveshKumarM_0-1701164762632.png

 

Then click on the Open in Designer related link from the related links section in the page record we created just now.

AnveshKumarM_1-1701164878364.png

 

Now in the Designer page opened, drag a 12 container to the page.

AnveshKumarM_4-1701165240848.png

 

Now in the search box type simple and drag the simple list widget to the 12 container we just added in the above step.

AnveshKumarM_5-1701165387831.png

 

Then click the edit (Pencil) icon at the right top of the widget we just dragged in and in the popup form fill in all the details as shown in below screen shots and save.

AnveshKumarM_7-1701165499325.png

 

AnveshKumarM_0-1701166453617.png

 

 

AnveshKumarM_3-1701165001355.png

 

With this we have a page which displays the locations, now we need to link it to the menu in header. Follow the guide below.

 

Navigate to Service Portal -> Portals and open the service portal record, and click on preview record next to Main menu field (i - Icon) and click on open record.

AnveshKumarM_8-1701165782462.png

 

Now in the page opened, scroll down to bottom and click on New button in Menu Items related list.

AnveshKumarM_9-1701165886395.png

 

And fill in the details as shown below and save.

AnveshKumarM_10-1701165971096.png

 

Now open your portal and check.

 

AnveshKumarM_11-1701166049693.png

AnveshKumarM_12-1701166289862.png

 

Please mark my answer helpful and accept as a solution if it helped 👍✔️

 

 

 

 

Thanks,
Anvesh

View solution in original post

6 REPLIES 6

Hi @AnveshKumar M 

 

What is purpose of 12 container ? When should we use other container 

 

And coming to widget why you suggested simple widget, why can't go other widget.

Hi @Gillerla Rajesh 

12 container means, it will spread for the entire width of page body. You can choose the size of container based on your requirement. 4 container for 1/3 of page body width.etc.

 

Simple list widget will come OOTB for just displaying the table data. Instead of creating a custom widget I prefer using this one.

Thanks,
Anvesh