• Merūnas Jokubauskas
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hello,

 

I've discovered something very strange with Force.com Sites and the Customer Portal.  If you change the owner of a Case to a Customer Portal User this then updates the Case's Contact to the Contact associated with the Customer Portal User.

 

This change happens deep in the background and by passes all of the validation rules and triggers that we have in place to prevent Case Contact's from changing, and Cases being logged with Contacts associated to an Account other than the one the Case is associated with.  However, when you change the Case Owner back to an internal user, the Validation and Triggers are fired and then it recgonises that the Case's Contact is not assoicated with the same Account as the Case and an error is produced.

 

My question is:  Is this correct behaviour or am I missing something obvious with Sharing Rules or such like?

 

Any tips would be greatly appreciated.

 

Kind regards,

 

Paul.