Salesforce Fact #423 | Error related to owner change

Have you come across errors while changing owner ids of records which involve queues? Let's see few of them.

Error1:


This error happens when you try to assign a queue as the owner but the SObject does not support a queue as the owner. For example, if you try to assign a queue as an account owner by mistake, this error will be encountered since Account object does not support queue as an owner.

Error2: 


This error happens when a queue is supported as the owner for the SObject, but you are trying assign a queue which is not supported by the current object, which supports some other SObject. For example, Case and Lead both objects can have queue as owner. Now, if you try to assign a queue which is supported by Case as the owner of a Lead record, you would get this error.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow