Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Unable to fetch Navigation History on Sales Hub Mobile App

Posted on by 4
Hi Community,
I am using sales hub mobile app and web browser application. I have written a JavaScript function that fetch me the history (Xrm.Navigation) which working fine on web but running same script it shows error on mobile app as Script Error: undefine is not an object.
 
command : Xrm.Navigation._context.Router._historyManager.history[-1].url
 
Please suggest me the solution for this and let me know how we can debug mobile app.
  • GauravSingh Profile Picture
    GauravSingh 4 on at
    Unable to fetch Navigation History on Sales Hub Mobile App
    Hi Amit,
    Thanks For the Reply, below is my JS function.
     
    function previousUrl(){
        alert(Xrm._utility._navigation._context.Router._historyManager.history[1].url)
    }


  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 5,801 Moderator on at
    Unable to fetch Navigation History on Sales Hub Mobile App
    Hello User,
     
    Can you share JS that you are using. It is possible that you may forget to add null checks before redirect.
     
    Also refer below article for the mobile app debugging.
     
    Thank you,
    Amit katariya 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans