+ Start a Discussion
Jyoti Singh 9Jyoti Singh 9 

How to get the account Id thanks to the lead's Id after the lead conversion?

After a lead conversion, I have to redirect the user to a Visualforce page (saveUrl on the URL) to examine some fields of the account to redirect the user then (depend of the values of the account fields).

Is it possible in Apex to get the account's Id of the lead after his conversion if I only have the lead's id?

Thank for the responses.
Best Answer chosen by Jyoti Singh 9
Gaurav KheterpalGaurav Kheterpal
I think you may be looking for convertedAccountId field?

If my answer helps resolve your query, please mark it as the 'Best Answer' to benefit others and improve the overall quality of Discussion Forums.

All Answers

Gaurav KheterpalGaurav Kheterpal
I think you may be looking for convertedAccountId field?

If my answer helps resolve your query, please mark it as the 'Best Answer' to benefit others and improve the overall quality of Discussion Forums.
This was selected as the best answer
Jyoti Singh 9Jyoti Singh 9
Thanks! Yes, this is that field.