I am getting the following error trying to Upsert to Product2: INVALID_FIELD: Field name provided, ProductCode does not match an External ID, Salesforce id, or indexed field for Product2.ProductCode is definitely a field and it is showing as being indexed in the App Setup, Customize, Products area. What am I doing wrong!?Note: using the SalesForce default sandbox setup - no customisations have been made.I am sure that this is a daft newbie question, but I've been searching for ages and can't find an answer myself or an example of using upsert for Product2 that answer the question. Thanks in advance!
Hi Stephen,Upsert can be only used with ID, External ID or field having idLookup = true. ProductCode is not having idLookup = true, neither ID field nor External id hence can not be used for matching.