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
Saravjeet SinghSaravjeet Singh 

How to send the data in JSON format to external system via custom button click

I need to create a custom detail page button on the Case object.
When this button is clicked it validates data to be sent via JSON to API(external system)
When JSON is sent a success response should be received/confirmed
I have following things with me:
Third party URL
What is the way to implement it please explain in detail. Thanks
Ashima nidhiAshima nidhi
Plese check the below steps:

#1 You ned JSON structure define to be sent and use by the third party (Using wrapper class or simple List map can be used)
#2 Create button and call the third party API. Also embed the api in remote site setting
#3 Use the apex Req/Res code to do the same. 

Once validated its fine else try debugging the same using postman/other chrome req/ tools