Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- Selecting large number of records for batch proces...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Selecting large number of records for batch processing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-21-2013 08:03 AM
I'm trying to figure out of there is any way in Salesforce to allow a user to select a large number of (for example) Contacts such that they can be batch processed as a later time.
So far I have tried:
1) Using the checkboxes on the list views, but this is limited to 200
2) Using the filter id returned by the list view drop down, but there is no obvious way of translating the filter id to a SOQL query, short of calling the metadata api from Apex
One way I have considered is to duplicate the functionality in the view builder, to allow the user to create a query on Contacts graphically and save the query description in a custom object, but that seems like a lot of work.
Is there something obvious I am missing?
Thanks,
Carl
Re: Selecting large number of records for batch processing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2013 03:44 AM
Hi,
By default batch processing will take only 200 records at a time for processing.
Please go through the below URL for more details.
http://www.salesforce.com/us/developer/docs/apexco
Regards,
Sridhar Bonagiri
Re: Selecting large number of records for batch processing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2013 03:48 AM
Thanks for the reply, but you appear to have misunderstood my question.
I am looking for some simple way to allow my user to select a large number (1000+) of Contacts and pass that selection to a batch process. The fact that the batch process then breaks the selection down into batches of 200 is irrelevant.
Thanks,
Carl
Re: Selecting large number of records for batch processing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2013 04:21 AM
Hi,
Sorry for misunderstanding your query, I think you can not display more thank 1000 items on a VF page.
Regards,
Sridhar Bonagiri
Re: Selecting large number of records for batch processing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-22-2013 05:09 AM
Yes, that is why I was hoping to use something like the view id, but there seems to way to use it except in a StandardSetController
Regards,
Carl
Re: Selecting large number of records for batch processing
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2013 10:17 AM - edited 01-27-2013 10:21 AM
Step 1: Have one filed like check box which can track whether one recorded is selected or not for batch processing.
Step 2: Go for a custom pagingnation, so that each page can have at best 100 record, provide the check box in UI (Step one check box) so that user can mark and can do a update DML (pagingnation and check box update DML should be AJAX enable only).
Step3: In your batch job query filter those records based on the check box selection and pass those records batch wise based on your requirements.
Note : Dont go for StandardSetController create a custom one.
(If this helps to solve your problem don’t forget to mark it as a solution)

