As per the documentation of salesforce, One can use retrieve()
to retrieve one or more records based on the specified IDs.
This is the syntax-based of the above reference document.
sObject[] result = connection.retrieve(string fieldList, string sObjectType, ID ids[]);
What is this connection
mean here? I tried the following syntax with no luck
List<String> listIds = new List<String>{'a0H3l00000PE9PMEA1'};
sObject[] result = Database.retrieve('ID, Name', 'Account', listIds);
And received the following error
COMPILE ERROR: Method does not exist or incorrect signature: void retrieve(String, String, List) from the type Database LINE: 2 COLUMN: 29
What am I missing here?