I'm having a strange issue when upserting a task. I am using an external id to insert/update the Task and the upsert works on most occasions except for one.
If I insert a Task WITHOUT a WhoId, and then upsert the task with a user other than the one used to create the task ( createdById ), I get the DUPLICATE_VALUE error. However, it I insert a Task WITH a WhoId, and then upsert the task with a user other than the one used to create the task, everything works as expected. If I insert a Task WITHOUT a WhoId, and then upsert the task with the user that created the task, everything works fine.
My question is, is there some sort of strange upsert permission and if so, why does it matter if there is a whoId or not?
Any help is much appreciated.
Hi, I am working on an application built on top of salesforce. We are pulling the metadata in and dynamically rendering the ui based on the metadata. Recently, there was a change to an api field name on a lead listview field. The field name was changed from 'Owner.Alias' to 'Owner.NameOrAlias'. I was wondering if this was possibly a mistake on the part of salesforce during the release of v40.0 of the api or if this is a more common occurance that I will need to account for in the application.