문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top