We want to run some logic on Account trigger only if it is created/updated via lead conversion.
So far, we have tried 2 approaches:
Approach 1: We tried creating a checkbox field on Account 'Is Lead Converted' and map it with a custom field on Lead object having default value as true. Above approach works fine for new Account but doesn't work for existing because checkbox field does not updates to true.
Approach 2: We also tried to create a text field and map it with a lead text field having default value as 'true' instead of Checkbox field. This worked and value updates from null to 'true'. Since we have to update the default value in the existing leads, we couldn't proceed with this approach because of some other restriction with respect to existing data in the org.
Is there any other approach to solve this issue.