[SalesForce] System/Audit fields work only partially (setting CreatedDate – works, setting LastModifiedDate – doesn’t)

I am trying to create an Event in Salesforce via SOAP API. Setting System/Audit fields via API is enabled.

I see that the resulting SOAP Envelope includes correct values for CreatedById, CreatedDate, LastModifiedById, LastModifiedDate fields. But when I am querying values after create I see that LastModifiedById, LastModifiedDate fields have been updated to something else (current time and user being used to do API call), while CreatedById and CreatedDate have correct values (ones that I've sent with SOAP request).

Does anybody know what might be the issue here?

P.s. this is a 'Professional Edition' of Salesforce

Best Answer

Here is the cause.

https://help.salesforce.com/apex/HTViewSolution?id=000005055&language=en_US

Once you disable Shared Activities (the ability to have multiple contacts on activities), it works.

Related Topic