function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Cool_DevloperCool_Devloper 

Help regarding Apex Inbound Email Service

Hello Friends,

I have implmented the Apex Inbound Email service for follow-up tracking and updating cases in my salesforce instance.

This is all working fine. But i was just wondering regarding the concurrency issues!

Means, in case multiple people reply to the Email Service address, then what happens to my email service execution. Will it process the emails one by one sequentially or would there by any failures/exceptions?

Is there a way to make it work in bulk mode? Like instead of processing a single "inboundMail" object, can/should I process a batch like what we do in triggers?

Can some1 pls clarify this?

Many Thanks,

Cool_D

Rasmus MenckeRasmus Mencke

it is all individually processed. Since the emails are differnt emails with different content, e.g. the headers are different and message ID's are different, we would not bulk them up and collect them as one email.

 

 

Cool_DevloperCool_Devloper

Thanks rasmus!

That should take care of a lot of issues for me :)

Cool_D