Refresh
REFRESH_DATA forces Zoho products to reload the latest data of a module (Invoice, Quote, Customer, etc.) from the server.
Commonly used for :
- Reloading updated module data
- Synchronizing UI with backend changes
- Ensuring latest record information is displayed
- Updating list or detail views instantly
- Reflecting SDK-based modifications immediately
When to use REFRESH_DATA :
- Your widget updates invoice / quote / customer fields
- You set or modify data using ZFAPPS.set()
- You perform backend updates via APIs
- You want the products UI to reflect changes instantly
Sample Code :
REQUEST DETAILS
window.onload = function () {
ZFAPPS.extension.init().then(function(App) {
ZFAPPS.set('<MODULE_NAME>.reference_number', 'REF-001')
.then(() => {
return ZFAPPS.invoke('REFRESH_DATA', '<MODULE_NAME>');
});
}
Note:
This method is essential for ensuring that any changes made by the widget are immediately visible to users without requiring a manual page refresh.This method is only available on detail and list page locations.