Question

I have written a C# web service that queries some data from Salesforce by using Salesforce Web Service API. I want to invoke this web service after an insert process from Salesforce. How can i invoke this web service inside of an Apex trigger ? Any help would be appriciated.

Was it helpful?

Solution

You need to invoke the web sevice inside a method with the @future annotation. Check out this post HTTP Callout from Triggers

OTHER TIPS

You cannot make a callout from apex trigger, so you cannot call a .Net web service from apex trigger

But you can create a boolean type field and can create a schedule exe in .net which will run after every 15 minutes based on boolean field and will update the boolean field to false in saleforce after your web service's code execution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top