Get
Retrieves contextual data such as field values, record information, or page-level details from the application.
Commonly used for :
- Retrieving current record field values
- Accessing organization or user context
- Fetching module-specific metadata
- Reading page-level details
- Obtaining system configuration values
Sample Code :
The get method is used to fetch specific data points from the host application. The input parameter is a string that specifies the data to be retrieved, such as 'invoice', 'customer', or etc. The method returns a promise that resolves with the requested data, allowing for asynchronous handling of the response.
REQUEST DETAILS
window.onload = function () {
ZFAPPS.extension.init().then(function(App) {
/* Below is an example to get the invoice details */
ZFAPPS.get('invoice').then(function (data) {
//response Handling
}).catch(function (err) {
//error Handling
});
});
}