function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mohit Srivastavamohit Srivastava 

Trigger is not firing after API insert in salesforce?

I Have (after insert, after update) trigger on case sObject. When I am manually inserting or updating case trigger fires, also when I am  updating existing case via REST API request it fires too. But when I am creating new case via REST API using INSERT or UPSERT methods trigger is bypassed. Even if trigger contians just one line: System.debug ('Hello world').

How do i overcome this issue??
Dhriti Moulick 16Dhriti Moulick 16
Hi Mohit,

    I think you are having issues in your REST API webservice class.Please re check your class and debug it after Insert/Upsert Statement.If Insert/Upsert Operation is succesfull it will definitly call your case Trigger.

Let me know if you have any concern.

Cheers,
Dhriti
mohit Srivastavamohit Srivastava
Hi Dhriti Moulick, Thanks for the reply but API is able to insert case in salesforce but trigger is not executing after insert
Dhriti Moulick 16Dhriti Moulick 16
Hi mohit,
   Can you please share your code snippet So that I can tell where is the exact problem lies?

Cheers,
Dhriti