function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shunshun 

Adding an OpportunityLineItem to an Opportunity updates Opportunity's SystemModstamp

Hi,

When I add an OpportunityLineItem to an Opportunity, the Opportunity's SystemModStamp changes along with the OpportunityLineItem. Why does the SystemModStamp of Opportunity get updated?

Shun
ScotScot

Shun,

See http://forums.sforce.com/sforce/board/message?board.id=scontrols&message.id=183 ... for an explanation of SystemModStamp ...

Scot

shunshun
Scot,

Thanks for the link. That clarifies some things.

However, according to the link, an "indirect" modification of an entity does NOT affect the LastModifiedDate, but I know that in salesforce.com, if I add a product to an Opportunity, the Opportunity's LastModifiedDate is being updated. Shouldn't the LastModifiedDate stay the same by this logic?

Shun
DevAngelDevAngel

Hi Shun,

No, the LastModifiedDate is for the object itself.  If you modify some related record then the SystemModStamp is updated.  This is the stamp that is set when the system modifies the record.  This is an indirect modification to the object, where as the last modified is a direct modification by the user.