Find your content:

Search form

You are here

What happens if I deactivate a User associated with an Email Service

 
Share

Lets say I set up an Email Service running as a given context user. What happens if I then deactivate that user? Does the service continue running? Stop running? Do I get an error message?

I would test this myself but don't have an appropriate setup, so I'm seeing what the community knows. Thanks!


Attribution to: Benj

Possible Suggestion/Solution #1

I just tested this situation in a developer org - upon deactivation there was no warning/error message stating that the user was an active email service's context user, and the email service itself was not deactivated (at least according to the UI). However, upon sending an email from an authorized source, the handleInboundEmail method of the InboundEmailHandler-derived class was never executed. Interestingly enough, none of the Deactivated Email Service or Unauthenticated Sender actions seemed to fire, either. Upon reactivation of the context user, the service began to function normally.

I'll give this a shot in an Unlimited edition org and see if the results differ. (Update: results were exactly the same in the Unlimited edition of Salesforce)


Attribution to: JCD
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/985

My Block Status

My Block Content