0

I have written a C# web service and it has a web method that gets last inserted Account object from Salesforce by using Salesforce Web Service API after that inserts these datas to an MSSQL database. I want to invoke this web service after an insert process of Account object from Salesforce. How can i invoke this web service inside of an Apex trigger(After Account insert) ? Any help would be appriciated.

Keith C
  • 135,775
  • 26
  • 201
  • 437
user3864408
  • 131
  • 1
  • 3

1 Answers1

2

Since you are trying to transfer the Salesforce Account into your SQL database, you can make use of APEX Callouts and call your webservice from your trigger on Accounts.

Also, your don't need to call Salesforce API again from your webservice to get the Account details. you should just be passing the required fields from Account record to your webservice that you need to map in your SQL database

You can go through these Salesforce References to know more about making Apex Callouts ..

Apex Callouts

Invoking Apex Callouts

Testing Callouts

Vamsi Krishna Gosu
  • 10,464
  • 5
  • 32
  • 49