EDIT: Adding a listview screen shot:

As you can see I do not have a listview named List View enter image description here

If I go to quickActions endpoint I can find my quick actions (in my case `New Child Case')

But my question is, how would you find Selected Quick Actions associate with Search Layout? please see the attached image.

I have looked this endpoints but could not find the search layout.

listviews: /services/data/v43.0/sobjects/Case/listviews
layouts: /services/data/v43.0/sobjects/Case/describe/layouts
quickActions: /services/data/v43.0/sobjects/Case/quickActions

enter image description here


You can use the Get List View Header Actions from UI-API. This provides you all the buttons and actions (only the selected ones as with your scenario) in the response. And that the type attribute on the response determines if the action is a Standard/Custom Button or Action. What you need here is the list view id of the list for which you want to get the details.

To get the list view for a particular object, you can perform a SOQL as below:

SELECT Id,Name FROM ListView WHERE SobjectType = 'myobjectname'

As an example, if I don't have an action in my list view as below:

enter image description here

And that I make a call to the API as /services/data/v43.0/ui-api/actions/list-view/listviewid, I get the following result:

enter image description here

Now, if I add the action to the list view:

enter image description here

And calling the same API as above, I get the results as:

enter image description here

  • Thanks for your reply but I could not find the ListView named List View in Search Layouts? how do you find that? and I have looked at this endpoints /services/data/v43.0/sobjects/Case/listviews but that does not give the listview that i'm looking for which is list view – Nick Kahn Aug 9 '18 at 13:23
  • in other words, how do you get list view id of the list for which I want to get the details? – Nick Kahn Aug 9 '18 at 13:25
  • As mentioned in the answer, you need to use the UI-API here. As for how to get the id id of the list view, I added that detail in the answer. Hope it helps now. – Jayant Das Aug 9 '18 at 13:29
  • 1+ well I could not able to get the list view id and if you look at my screen shot i'm in the search layouts and from search layout i have layout name called 'list view' hope this make sense. – Nick Kahn Aug 9 '18 at 13:31
  • Because the selection on search layout will be applicable to any list view, so you can actually make a request based on any of the list view ids for that object. – Jayant Das Aug 9 '18 at 14:09

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.