The documentation on using the partner WSDL says there's an SObject.getField("FieldName");
method. I don't see it.
I saw an example with the two lines that are commented out below. Those lines will not compile as SObject
does not have a getField()
method.
Anyone know how to get field values out of objects returned by the partner API?
QueryResult qr = stub.query(soqlQuery);
SObject[] recordList = qr.getRecords();
for (int i = 0; i < recordList.length; i++) {
SObject contact = recordList[i];
//Object firstName = contact.getField("FirstName");
//Object lastName = contact.getField("LastName");
}