How to specify path to a portal page under Mobile UI ?

karthikdurga
Mega Expert

I have created a portal page and want to link it under Mobile UI -> Navigator Apps -> Service Portal -> New Module. I tried specifying the path as path of the page (/sp/?id=page_name), but it did not work. Any advice on how to do this ? thanks in advance for your time.

1 ACCEPTED SOLUTION

I figured out the solution -



1)Go to Mobile UI -> Navigator Apps   and open "Service Portal" application menu.


2)Create a new module and specify the path of the page as /$sp.do?id=page_name , and select the check box "Path Relative To Root". save it.


3)When you try to check this in browser by appending $m.do to your url, you would see a blank page. for this module However, when you open it in service now mobile app, the page gets rendered flawlessly.



Hope this is helpful!


View solution in original post

4 REPLIES 4

Rajesh Mushke
Mega Sage
Mega Sage

Hello Karthik,



I have resolved this by change the path 'Service Portal' to the new portal under System Mobile UI --> Mobile Modules.




Please Refer,



Linking a UI Page to be accessible on a Mobile Device



Create URLs in the ServiceNow Mobile UI to Modules, Favorites, & UI actions



Mobile Module - Path Creation for Portal Pages




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Could you please elaborate. I have seen these links earlier but they don't mention anything about portal pages.



The path for service portal is currently /sp. Let's say the path to my portal page is (/sp/?id=page_name). Could you tell me what I need to specify as path ?


I tried adding the link under System Definition -> Module (mobile), link type = URL (from Arguments:) and Argument = /sp/?id=page_name. When I did this , I couldn't see this module on mobile ($m.do). Any idea how to link this ? I tried to click on "New Mobile Module" but I don't know what path to specify as this doesn't fall under form or list or view.



Anyone who has done this before, appreciate your help here. Thanks!


I figured out the solution -



1)Go to Mobile UI -> Navigator Apps   and open "Service Portal" application menu.


2)Create a new module and specify the path of the page as /$sp.do?id=page_name , and select the check box "Path Relative To Root". save it.


3)When you try to check this in browser by appending $m.do to your url, you would see a blank page. for this module However, when you open it in service now mobile app, the page gets rendered flawlessly.



Hope this is helpful!