You need to sign in to do that
Don't have an account?
Stephane Nachez
Retrieving contacts from a specific contact list view
Hi everybody, I would like to know how to retrieve all the contacts from a specific contact list view from its id (by view i mean particular set of filtered contacts that we can create from the interface) . I've been looking for it for a long time but didn't find a way to do it.
Thank you very much
Thank you very much
In this regard you have to use listview API
http://andyinthecloud.com/2014/09/20/super-listview-viewer-using-winter15-listview-api/
hope this will help you much.
All Answers
Do you need to selected contact ids from the list view to process it further?
Are you looking to export them all? or you wanted to perform certian action on the selected list view contacts.?
No Amul, i would like to get the infos of all the contacts from a specific view, without needing to check their row..
something like "select * from contacts where id in ( select contact_id from views_contacts where view_id =xxx ) "
(just to explain what i want to do.. but i don't find which relationship/fields i should use to get it.
To explain a little better : My code should allow a user to select a view then press a button which will perform an action on all the contacts of this chosen view.
Thank you very much
See this blog:
http://abhithetechknight.blogspot.in/2013/09/concept-of-standardsetcontroller-for.html
Let me know if this can help.
For example the user can create a view "male customers", a view "female customers" or any other view he wants using filters. Then i need to be able to retrieve all the contacts from one of these views. Thank you.
In this regard you have to use listview API
http://andyinthecloud.com/2014/09/20/super-listview-viewer-using-winter15-listview-api/
hope this will help you much.
http://clicksandcode.blogspot.in/2014/10/export-records-from-list-view-listview.html