You need to sign in to do that
Don't have an account?
Pramodh_Shiva
Task Sub Type Before Insert
Hi All,
I am working on task object to populate some values, as task,email and log a call will be considered as task, I want to differentiate them in my trigger before the record is inserted.
I used tasksubtype field to check whether it is task or email but seems this field is NULL in before insert only after the record is inserted it shows the value.
Please help, thanks in advance.
PFA for reference
I am working on task object to populate some values, as task,email and log a call will be considered as task, I want to differentiate them in my trigger before the record is inserted.
I used tasksubtype field to check whether it is task or email but seems this field is NULL in before insert only after the record is inserted it shows the value.
Please help, thanks in advance.
PFA for reference
TaskSubType is have some Limitation which is not available in the before insert trigger.
It can be modified in a `before insert` trigger, and not in After insert trigger. Additionally, the actual value isn't populated until `after insert`, at which point it cannot be modified.But you can use this fiels for any comparision in after insert.
Please refer the below Links,
https://success.salesforce.com/ideaView?id=0873A000000COq5QAG.
https://salesforce.stackexchange.com/questions/200883/populating-task-subtype-field-with-call-when-a-task-created
Can you please Let me know if it helps or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Maharajan.C
I understand that, I need solution as how to differentiate send an email and task in before insert.
Thanks,
Pramodh