function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ken KoellnerKen Koellner 

Navigate to a record in Salesforce1 (SF1)

I have a VisualForce page.  When it completes, I want to redirect the user to a new object.  In desktop, I'd just use "/" and the record ID.

When using one/one.app, that doesn't appear to work correctly.  I end up back on the record from where the VF page launched.

Looking at a record in SF1 using Chrome, I see the URL --

https://hmhco--sb5.cs15.my.salesforce.com/one/one.app#/sObject/006e0000007sgOaAAI/view?t=1420466929144

I could construct that URL except I don't know what the "t" parameter is.  The 006e0000007sgOaAAI is the record ID.  But if I don't put on the "t" parameter, I just get the recent list, not the record.  I have no idea what the 1420466929144 is on the "t" parameter.  I'm thinking if I knew where that came from, maybe I could construct that URL.

Any ideas?
logontokartiklogontokartik
There are specific methods that come with Salesforce1 which can help you with navigation. These are under sforce.one namespace. The specific method that you would use should be navigateToURL()
Please take a look at the below link
http://www.salesforce.com/us/developer/docs/salesforce1/Content/salesforce1_dev_jsapi_sforce_one.htm
 
Nic 121Nic 121
True, but any examples of this in use?