5

I see in the Salesforce1 Developer Guide the section on Managing Navigation has documentation on the navigateToList method.

navigateToList(listViewId, listViewName, scope)    

Navigates to the list view as specified by the listViewId and listViewName.

What is the scope parameter?

I have the following Visualforce that should redirect to a list view, assuming that the listViewId is the Id of the list view and the listViewName is the Name of the view (i.e., what displays in the picklist in Salesforce web). I'm not sure what the scope parameter would be, though.

<apex:page >
  <script>
      if ( (typeof sforce != 'undefined') && (sforce != null) ) {
          sforce.one.navigateToList('00BZ0000000VzdE', 'My Custom List View', ???);
      }
  </script>
</apex:page>

I found this documentation on the Scope Parameter, but it is for oauth, so I assume it wouldn't apply to this method.

3

It is the Entity for your list or more specifically the Entity API name.

  • Account
  • Contact
  • CustObject__c
  • Awesome! Thanks! Worked perfectly with Accounts. I was hoping it would work with Events too, but I guess that's not supported yet: sforce.one.navigateToList('00BZ0000000VzdE', 'MyEvents', 'Event');, resulted in an empty list view and an error dialog with 'We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error. Contact your administrator or salesforce.com for help.' – Peter Knolle Nov 27 '13 at 2:23
  • Yes it appears as of right now Tasks, Events and Activities cannot be shown in that way. – Kris Gray Jan 14 '14 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.