This is my scenario. I have a Oauth2 app in which I am getting Cases for the connected user. In the initial setup, after getting initial Cases from a custom query, I would like to create on Salesforce a trigger for when a new Case is created, and in this trigger call my API with the Case information that is relevant to my app. It is important to do this in real time (this is why I am thinking on a trigger) and not being asking, like a cronjob. How can I accomplish this?
I have been taking a look at metadata api (ApexTrigger), but it seems that I need a callout? Not even know what this is.
Can anyone point me in the right direction, please? Not sure if this something that I can accomplish, documentation is huge.
I am using Go, but this is just FYI, I don't think this is quite relevant.
Any help would be much appreciated.