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

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Sirri ,

 

U need to create a new Menu Item on your portal.

For eg. Portal is SP portal then plz navigate to 

  1. Service Portals -> Portals
  2. Open your portal (for this eg sp portal)
  3. Once u open it u will see Main menu field highlighted in yellow as shown below
  4. DanishBhairag2_0-1701164364825.png

     

  5. Open that record in new tab you should be able to see at the bottom of the page Menu Items as shown below
  6. DanishBhairag2_1-1701164439058.png
  7. Add the Location Option over der with name as Active Location. You should be able to see that option on The portal.

 

Thanks,

Danish

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Sirri 

 

Yes, it is do able but it will show all Locations and location dont have any active field.

Go to 

SP Menu Header

 

https://INSTANCENAME.service-now.com/now/nav/ui/classic/params/target/sp_instance_menu.do%3Fsys_id%3...

 

Under Menu header related list

Create a new menu as per type:

LearnNGrowAtul_0-1701164961216.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

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

Hi @AnveshKumar M,

 

Thank you.