You need to sign in to do that
Don't have an account?
Karthik j
Why recordtype information is null in before insert trigger
Hi all,
I am trying to access the recordtype name inside the if condition which is written in before insert context of lead record, but whenever I am creating a lead I am getting recordtypeId as null.
Will recordtypeId is not set in before insert context?
I am trying to access the recordtype name inside the if condition which is written in before insert context of lead record, but whenever I am creating a lead I am getting recordtypeId as null.
Will recordtypeId is not set in before insert context?
Hi Karthik j,
In the before-insert trigger context, the RecordTypeId of the record will not be available because the data is not saved in the database therefore, you will not be able to access the RecordTypeId in a before-insert trigger. If you want to access the recordtypeId then go with the after trigger.
Please mark this as the best answer if this helps.
Thanks
Can you please share the Trigger .
Thank you.