I am trying to use a dynamic field for my Database.Upsert command as follows:
String extField = objVariable + fieldVariable;
Database.UpsertResult[] up = Database.upsert(toUpsert, extField);
This however returns the following error:
Method does not exist or incorrect signature: void upsert(List, String)
How can I resolve this?