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
vishal yadav 62vishal yadav 62 

Displaying data from third party application on visualforce page or our org..

Displaying data from third party application on visualforce page or our org..
NagendraNagendra (Salesforce Developers) 
Hi Vishal,

You can get the information from a third-party application using the future method with callout=true.But the future method cannot return any value.For this, you can remove the future annotation and make sure that there is no DML call in the same method. Assign the result of the callout to any list or a wrapper class and display it on the VF page.

Note: you make use of "rerender" and "onComplete"  properties of action function and command button tags to rerender a particular section or perform any other action once the execution of web service method is complete. You can also do a call out directly from the get method of a variable which is referred by visual force page directly, so when that particular part of the page is loaded it pulls the results using a callout and displays them on the page.

It all depends on the requirement and the page that you are trying to build.

For more information please check with below link. Hope this helps.

Mark this as solved if the information is helpful.

Thanks,
Nagendra
vishal yadav 62vishal yadav 62
can you send me the code please