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.

1 Answer 1

3

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

  • Account
  • Contact
  • CustObject__c
2
  • 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.' Nov 27, 2013 at 2:23
  • Yes it appears as of right now Tasks, Events and Activities cannot be shown in that way.
    – Kris Gray
    Jan 14, 2014 at 17:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .