+ Start a Discussion
Søren SørensenSøren Sørensen 

Future callout and afterwards update of visualforce page

I have an Visual Force page which when visited launches an Apex Callout (With the use of URL Parameters from visualforce page), when this callout is done (Contact object has been created/updated) the original VisualForce page needs to update to reflect the returned contact object.
How can this be done?
 
Best Answer chosen by Søren Sørensen
Sumitkumar_ShingaviSumitkumar_Shingavi
You need to use JS Remotting for this.

Read more on JS remotting here:
1. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
2. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting.htm

Thanks,
Sumit
 

All Answers

Sumitkumar_ShingaviSumitkumar_Shingavi
You need to use JS Remotting for this.

Read more on JS remotting here:
1. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
2. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting.htm

Thanks,
Sumit
 
This was selected as the best answer
Søren SørensenSøren Sørensen
Thanks :-) Finally got it to work. 
Sumitkumar_ShingaviSumitkumar_Shingavi
Great!! Happy to help buddy!