+ Start a Discussion
F SmoakF Smoak 

after trigger not firing when record is created by custom apex and vf page

I have created an after Insert trigger on SObject which creates records for another object based on SObject created from csutom vf page and apex. 
While testing, I see that trigger runs successfully and records are created nce Sobject records created from data loader but when I created Sobject from custom page, trigger doesnt fire and debug logs dont show any information. Any helps will be appreciated!
AbhishekAbhishek (Salesforce Developers) 
Your query is answered in this developer discussion,

https://salesforce.stackexchange.com/questions/122697/aftet-insert-trigger-not-working-when-record-created-by-code

Try the code as mentioned above.


Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks