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 #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow