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
lesanglesang 

Web Service in VisualForce page?

Hi all,

I have created a VisualForce page with some data fields and a command button. Now I want when click the command button data on this page will be transferred to my external site so that that data will be updated in my external site. Which the way I should do?

I need your help.

Thanks.
TehNrdTehNrd
PageReference successPage = new PageReference('http://www.google.com');
successPage.setRedirect(true);
return successPage;
lesanglesang
Thanks for your help.
Your code runs very well. When I submit, it redirect to my page. But I think it should redirect to view page otherwise data will be transferred to my external website and it is also updated. For example: I have a Session table in my external site, I want to integrate the New Session page on Salesforce, when user create an session from SF, data will be updated back to Session table in my external site.