+ Start a Discussion

How to write to ExternalDataUserAuth programatically?

Is it possible to write records to the ExternalDataUserAuth object via Apex code?
When I try to write some Apex code to insert records into the ExternalDataUserAuth object I get an 'illegal dml object' message.

I know that you can create records manaually using the UI but our solution requires that we create these records automatically via code.

Any help appreciated.
ShirishaShirisha (Salesforce Developers) 
Hi Simmo,


Are you referring to the External Data sources as given in the below document:


Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri