function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Grant OngstadGrant Ongstad 

Apex Class Working Randomly

Hello Everyone,
 
A developer created an @future method that set the Opportunity Owner based on a criteria that is stored in a custom object. During lead conversion our code works almost 99% of the time. What is strange is that when it doesn't work, when the user remains the default user, If i clone the opportunity, the Code works.

I guess what I am trying to ask, and this is before I show some of the code is:
Is there any reason that a trigger would not fire on opportunity creation, but would fire when it is cloned? Arent these the same actions?

Best,
Grant