Recipes by Category
App Distribution (2)
Bundle logic, interface and services for distribution.
App Logic (37)
The Apex programming language, workflow and formulas for logic.
Collaboration (6)
The Salesforce Chatter collaboration platform.
Database (29)
Data persistence, reporting and analytics.
Integration (33)
Web Service APIs and toolkits for integration.
Security (9)
Platform, application and data security.
Tools (4)
Force.com tooling
User Interface (36)
Visualforce MVC and metadata-drive user interfaces.
Web Sites (12)
Public web sites and apps with optional user registration and login.
Cookbook Home » Serialize Batch Apex
Share
X
Vote to Verify a Recipe
Verifying a recipe is a way to give feedback to others and broaden your own understanding of the capabilities on Force.com. When you verify a recipe, please make sure the code runs, and the functionality solves the articulated problem as expected.
Please make sure:- All the necessary pieces are mentioned
- You have tested the recipe in practice
- Have sent any suggestions for improvements to the author
Please Log in to verify a recipe
You have voted to verify this recipe.
© Copyright 2000-2013 salesforce.com, inc. Web-based Customer Relationship Management (CRM) Software-as-a-Service (SaaS).
All rights reserved Various trademarks held by their respective owners.
All rights reserved Various trademarks held by their respective owners.
Salesforce.com, inc. The Landmark @ One Market, Suite 300, San Francisco, CA, 94105, United States
General Enquiries: 415-901-7000 | Fax: 415-901-7040 | Sales: 1-800-no-software
General Enquiries: 415-901-7000 | Fax: 415-901-7040 | Sales: 1-800-no-software

Recipe Activity - Please Log in to write a comment
Thank you
Figured out the problem. The To Address on the custom settings object was set to the Email type, which could not handle the length of the sandbox service address. Things worked seamlessly after changing the To Address to Text(255).
I'm using the E2A code from Github and works beautifully. The only issue I have is that on the sandbox when the APEX code sends the email directly to the email service nothing seems to be happening. However if I forward the same email to the service then the sevice handler executes and the batch is scheduled properly. Suggestions?
awesome reciepe
Awesome Reciepe .
Hi Devendra,
Thanks a lot... Its working fine..
And i have a doubt.. If i am having a class, Through that class i am passing the list values in to second batch apex for execution. if i used this serialization process. How can i pass the values to second batch... Please help me..
Thanks
Inspired by your code I've created a small Toolkit 'Email2Apex' to make it more generic solution and to support parameters. check out: https://github.com/sbwdev/Email2Apex
Just kidding - can't insert EmailServicesFunction from apex :(
Hmm-on second thought, I can have some "activate" button create the EmailServicesFunction & EmailServicesAddress on install, which eliminates the manual error issue.
Love the idea! I wanted to use this for a managed package, but it appears Email Settings can't be packaged, so it would be pretty painful for the installer to set up the setting as if they get anything wrong, the code would break.
I found the problem - The sandbox includes the text "Force.com sandbox" in both the subject and body of outbound emails. Also, when I try to use the contains() strting method on email.plainTextBody, it doesn't work, so I have to use the Subject field instead.
Hello. Thanks for posting this. I'm trying to implement in a sandbox but the EmailServiceHandler is not doing anything when the first batch sends the email. I have set the Inbound Email Service to accept mail from all domains, and the EmailServiceHandler works fine when I send an email from gmail.com, yahoo.com, etc. I've double-checked the To address in the EmailHandler class.
Any suggestions?
Thanks
David
Nice recipe Deva ....
This definitely works...
Worked for me.