function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GYAN ANDRUSGYAN ANDRUS 

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,
Gyan....
 
pconpcon
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