Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3343298
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:56:18+00:00 2026-05-18T00:56:18+00:00

I have an inbound email handler that’s working. However, right now I’m worried about

  • 0

I have an inbound email handler that’s working. However, right now I’m worried about concurrency issues, when a user sends 2 emails at the same time for the same object. (I have a business document form, and a technical document form that gets sent to salesforce.) They contain different things, except for the company name (They get sent over from someone else directly to salesforce).

Since I’m doing an insert of my custom object at the very end, I’m worried about concurrency issues. Will this ever happen? My inbound email handler creates 2 custom objects for the same company and both filling in only half the information.

If so, how can I prevent a concurrency problem from happening?
Current Ideas:
– Do a query for custom_object right away with the associated account rather than at the very end. If the custom_object does not exist, create one.

Cheers,

Kuen

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:56:19+00:00Added an answer on May 18, 2026 at 12:56 am

    “Concurrency” in the traditional sense, is rarely an issue on the platform. Each one of your in-bound emails is going to create a separate process (handler) on the platform and operate independently. You have a couple of options to deal with your multi-part email scenario though if you’re looking to combine them:

    1. Schedulable Apex will allow you to regularly (daily, weekly, whatever) check your existing accounts for the existence of two custom objects, then use a standard merge to bring them together. The downside is your users may see both objects until your process has had time to merge them. Think of it as a ‘garbage collector’ or ‘cleaning process’ type of model.
    2. You can use one inbound email type as the ‘main’ form, then process the other (say, the tech doc) in an asynchronous method. You’ll up your chances of having them process in the correct order, but there’s no guarantee.
    3. Your way (query first) is also completely fine, though again, your query may not ‘catch’ the object after its been inserted, and if not, you’ll miss it entirely.

    In your shoes, I’d probably do a combination of 2, and then 3 to clean up any you miss.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a flow that works as follows: <flow name=ChatListener> <quartz:inbound-endpoint jobName=eventTimer repeatInterval=${chatListener.pollingInterval}> <quartz:event-generator-job
I have an app that services inbound mail and I have deployed a new
I have a Grails webapp running a Spring Integration inbound-channel-adapter that is configured to
I have develop a soap handler which intercept inbound message and retrieve values from
I have an application that makes several slow http calls on certain inbound API
I have written a working class in Apex. It is an Email service extender,
I have two inbound links that land on 404 pages because the links are
I have an application that checks multiple email accounts (think Webmail). Because I'm retrieving
I have a document library that is successfully receiving and saving attachments from inbound
I have a server reading inbound newline-delimited strings. The pipeline looks like this: ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.