I am designing to integration structure of our 3rd party system from and to Salesforce. It is about data integration and I am planning to have the Request & Response structure. In the triggers of Salesforce, I will use soap api to update our 3rd party system. And meanwhile, our 3rd party system will update Salesforce data via metadata API.
The issue with this is in the triggers, if the data is changed within the Salesforce org, I need to use Web service to update. But if the change is coming from Metadata API, I don't want to do that. Is there a way to distinguish that?
I searched the Apex class. It seems
System.isFuture can tell whether it is coming from a batch or job, but I don't see anything tell whether it is coming from Remote API. Is there any way I can achieve this?