As you know Salesforce accounts could be created either as a result of lead conversion or directly, by creating a new account using account creation form (and, accordingly, bypassing lead creation stage). Is there any way to distinguish newly created accounts by its creation type (where creation type is converted lead/manual creation)?
I was thinking about attaching to the account entities a special boolean flag which will be changed in the scope of lead after update trigger, but per this post Lead Conversion Trigger Order of Execution the both (before/after) of Lead-related triggers are being fired at the last order (our tests showing the same behavior), while we need to know it somewhere in the scope of Account After Create trigger.
Accordingly, if such flag is the only approach, then we need to attach some custom coding to the New button, appearing in the account creation form... but this seems to be a really boring solution.
Maybe there a simpler/efficient one?
Thank you in advance!