Skip to content

Instantly share code, notes, and snippets.

@visaolive
Created June 8, 2020 02:06
Show Gist options
  • Save visaolive/48575ec3785c69ac8ef5fe195b2302d3 to your computer and use it in GitHub Desktop.
Save visaolive/48575ec3785c69ac8ef5fe195b2302d3 to your computer and use it in GitHub Desktop.
GoogleOrderPubSub.trigger
trigger GoogleOrderPubSub on Order (after insert, after update) {
ID jobID = System.enqueuejob(new GoogleOrderPubSubQueueable(Trigger.New));
system.debug('GoogleOrderPubSub Trigger ' + jobID);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment