• #27044
    Salesforce | Ankit Ankit #947
    Forcetalks

    Can we use mixed sobjects dml in one transaction?

    Can we use mixed sobjects dml in one transaction?

     

    #27048
     Rajan #943
    Forcetalks

    Hi ankit ,

    You can’t use the following sObjects with other sObjects when performing DML operations in the same transaction.
    You can only insert and update a group in a transaction with other sObjects. Other DML operations aren’t allowed.

    #27054
    Salesforce | Adarsh Adarsh #954
    Forcetalks

    Hi Ankit,

    You can use external ID fields as foreign keys to create parent and child records of different sObject types in a single step instead of creating the parent record first, querying its ID, and then creating the child record.

    You can create related records that are up to 10 levels deep. Also, the related records created in a single call must have different sObject types. For more information, see Creating Records for Different Object Types in the SOAP API Developer’s Guide.

    #27059
    Salesforce | Archit Archit #953
    Forcetalks

    Hello Ankit,

    No, You can’t use the following sObjects with other sObjects when performing DML operations in the same transaction.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

Popular Salesforce Blogs

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?