- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- 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
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?
01-22-2013 03:44 AM
By default batch processing will take only 200 records at a time for processing.
Please go through the below URL for more details.
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.
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
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)