function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SimmoSimmo 

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,

Greetings!

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

https://help.salesforce.com/articleView?id=external_data_sources.htm&type=5

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

Warm Regards,
Shirisha Pathuri