5

I have a trigger which based on some criteria updates the leads record type. The record type is successfully updated (has the correct record type ID) and an assignment associates this lead with the correct queue (based on the record type).

The problem is that the record type for the lead, is then updated again back to the users default record type. I have enabled field history on the record type field and the second update appears to be running in the context of the logged in user. I have triple checked all lead triggers and workflow in the org and trawled the debug logs but I can't find a reason why this update is occurring.

6

Figured this one out myself - hopefully this answer helps someone else. In the lead settings, there is a setting to Override the existing record type with the assignee's default record type. Updating this to keep the existing record type solved the issue for me. See screen below:

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.