+ Start a Discussion

Can anyone please tell how to write the web Service in salesforce,I want to write the webservices in Salesforce(Post) for the Magneto ,

The records to be inserted in Salesforce,I want to give the Rest API(POST) to magento,Whenever i insert or update any record i need to give that data  as a json format,Please help me ,How to do that?

Thanks in Advance,
So you are looking to do an outbound callout to your Magento system from Salesforce whenever an object is inserted or updated?  I would recommend reading over these articles [1] [2] do this Trailhead module [3] and be aware of these limitations [4].  If after reading those, you have any specific questions please feel free to ask.

[1] https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts
[2] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts.htm
[3] https://developer.salesforce.com/trailhead/module/apex_integration_services
[4] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_timeouts.htm