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
Post a Comment