Activity Forums Salesforce® Discussions Can I Upsert List of List of Opportunity?

  • Ajit

    Member
    April 30, 2016 at 10:55 am

    Using the upsert operation, you can either insert or update an existing record in one call. To determine whether a record already exists, the upsert statement or Database method uses the record’s ID as the key to match records, a custom external ID field, or a standard field with the id Lookup attribute set to true.
    1. If the key is not matched, then a new object record is created.
    2.If the key is matched once, then the existing object record is updated.
    3. If the key is matched multiple times, then an error is generated and the object record is neither inserted or updated.

  • Abhinav

    Member
    April 30, 2016 at 10:59 am

    Hello,

    Yes for upsert operation you must have and external id field on the basis of that external field record either gets inserted or updated.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos