Salesforce Fact #619 | DML on external objects

While performing DML on external object records we need to use either async or immediate variation functions of Database class.

For example, if we try to use insert statement while inserting new records, we get the below error:

System.DmlException: Argument must be of internal sObject type. use insertAsync() or insertImmediate() instead.

Comments

Popular posts from this blog

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #947 | Resolving dashboard logged-in user limit error

Salesforce Fact #929 | Nth highest in screen flow