Our partner also has Salesforce implementation as such we plan to deploy the out of the box Salesforce to Salesforce for obtaining leads from them.
This is an amazing feature but looks like our partner company actually "owns" the record..by that I mean any changes they make ,once the record is shared, automatically overwrites the record in our downstream org.
Is there a way to prevent just the update but allow the insert ?
I tried the following validation rule but that does not seem to work. No errors is obtained while saving the validation rule but the update restriction does not seem to be happening.
AND
(
LastModifiedBy.Id = 'XXXX',
NOT(ISNEW())
)
So does this mean that any record that is "published" by a upstream Salesforce implementation via S2S will always overwrite the changes made by the downstream Salesforce instance ?
XXXX
? ... the only value I can think of that would plausibly work is the ID of theConnection User
and if that worked for you, you'd want to useLastModifiedBy.name='Connection User'
for clarity