• Vishal Kashyap 31
  • NEWBIE
  • 0 Points
  • Member since 2018

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

I m using salesforce email service and have created a email parser(Controller) to extract the data from incoming email for a custom object.

Everything works with the default owner. But the requirement is to change the record owner. When the set the OwnerID to desired owner is gives the following error

"EXCEPTION_THROWN [548]|System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id:"

Please let me know what I need to set to make the controller class change the Owner for this custom object.

Thanks in advance
Sunny