Skip to main content

Items

The Items module allows widgets to access item-level data such as products and services. It provides item identifiers, types, and classification metadata. This module is commonly used to customize item selection and validation logic.

Methods

Get Item Details

Retrieves data related to the current context. This method allows your widget to fetch record details, field values, or metadata required for rendering or processing logic.

Commonly used for :
  • Fetch record information
  • Read field values
  • Access contextual module data
Supported Locations :
item.creation.sidebaritem.details.sidebaritem.details.buttonitem.bulkaction.button
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('item').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
attribute_name1item.attribute_name1
attribute_name2item.attribute_name2
attribute_name3item.attribute_name3
attribute_option_name1item.attribute_option_name1
attribute_option_name2item.attribute_option_name2
attribute_option_name3item.attribute_option_name3
nameitem.name
descriptionitem.description
rateitem.rate
account_iditem.account_id
Show More Supported Input Keys
PropertyRequest
item_iditem.item_id
tax_iditem.tax_id
purchase_tax_iditem.purchase_tax_id
tagsitem.tags
skuitem.sku
upcitem.upc
eanitem.ean
part_numberitem.part_number
isbnitem.isbn
custom_fieldsitem.custom_fields
purchase_rateitem.purchase_rate
purchase_account_iditem.purchase_account_id
purchase_descriptionitem.purchase_description
group_iditem.group_id
purchase_tax_rule_iditem.purchase_tax_rule_id
sales_tax_rule_iditem.sales_tax_rule_id
is_taxableitem.is_taxable
tax_exemption_codeitem.tax_exemption_code
product_typeitem.product_type
reorder_levelitem.reorder_level
preferred_vendorsitem.preferred_vendors
vendor_iditem.vendor_id
inventory_account_iditem.inventory_account_id
avatax_tax_codeitem.avatax_tax_code
initial_stockitem.initial_stock
initial_stock_rateitem.initial_stock_rate
crm_owner_iditem.crm_owner_id
hsn_or_sacitem.hsn_or_sac
item_tax_preferencesitem.item_tax_preferences
track_serial_numberitem.track_serial_number
serial_numbersitem.serial_numbers
track_batch_numberitem.track_batch_number
batchesitem.batches
branditem.brand
manufactureritem.manufacturer
is_returnableitem.is_returnable
category_iditem.category_id
package_detailsitem.package_details
warehousesitem.warehouses
locationsitem.locations
unititem.unit
unit_iditem.unit_id
default_sales_unit_conversion_iditem.default_sales_unit_conversion_id
default_purchase_unit_conversion_iditem.default_purchase_unit_conversion_id
revenue_recognition_rule_iditem.revenue_recognition_rule_id
recognition_typeitem.recognition_type
revenue_recognition_deferred_account_iditem.revenue_recognition_deferred_account_id
label_rateitem.label_rate
name_sec_langitem.name_sec_lang
alias_nameitem.alias_name
sat_item_key_codeitem.sat_item_key_code
unitkey_codeitem.unitkey_code
taxability_typeitem.taxability_type
show_item_in_portalitem.show_item_in_portal
classesitem.classes
min_profit_percentitem.min_profit_percent
integration_referencesitem.integration_references
allowed_qty_customeritem.allowed_qty_customer
allowed_qty_salespersonitem.allowed_qty_salesperson
qty_frequency_customeritem.qty_frequency_customer
qty_frequency_salespersonitem.qty_frequency_salesperson
is_storage_location_enableditem.is_storage_location_enabled
item_classification_codeitem.item_classification_code
origin_country_codeitem.origin_country_code
package_unit_codeitem.package_unit_code
einvoice_import_iditem.einvoice_import_id
inventory_valuation_methoditem.inventory_valuation_method
is_receivableitem.is_receivable
product_tax_categoryitem.product_tax_category
sales_marginitem.sales_margin
can_be_solditem.can_be_sold
can_be_purchaseditem.can_be_purchased
track_inventoryitem.track_inventory
item_typeitem.item_type
additional_preferencesitem.additional_preferences
is_project_associateditem.is_project_associated
project_iditem.project_id

Set Item Details

Updates or sets data within the current context. This method allows your widget to modify field values, update state, or pass data back to the host application.

Commonly used for :
  • Update field values
  • Set widget or module state
  • Pass data to the parent application
Supported Locations :
item.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('item.name', <value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
attribute_name1item.attribute_name1
attribute_name2item.attribute_name2
attribute_name3item.attribute_name3
attribute_option_name1item.attribute_option_name1
attribute_option_name2item.attribute_option_name2
attribute_option_name3item.attribute_option_name3
nameitem.name
descriptionitem.description
rateitem.rate
account_iditem.account_id
Show More Supported Input Keys
PropertyRequest
item_iditem.item_id
tax_iditem.tax_id
purchase_tax_iditem.purchase_tax_id
tagsitem.tags
skuitem.sku
upcitem.upc
eanitem.ean
part_numberitem.part_number
isbnitem.isbn
custom_fieldsitem.custom_fields
purchase_rateitem.purchase_rate
purchase_account_iditem.purchase_account_id
purchase_descriptionitem.purchase_description
group_iditem.group_id
purchase_tax_rule_iditem.purchase_tax_rule_id
sales_tax_rule_iditem.sales_tax_rule_id
is_taxableitem.is_taxable
tax_exemption_codeitem.tax_exemption_code
product_typeitem.product_type
reorder_levelitem.reorder_level
preferred_vendorsitem.preferred_vendors
vendor_iditem.vendor_id
inventory_account_iditem.inventory_account_id
avatax_tax_codeitem.avatax_tax_code
initial_stockitem.initial_stock
initial_stock_rateitem.initial_stock_rate
crm_owner_iditem.crm_owner_id
hsn_or_sacitem.hsn_or_sac
item_tax_preferencesitem.item_tax_preferences
track_serial_numberitem.track_serial_number
serial_numbersitem.serial_numbers
track_batch_numberitem.track_batch_number
batchesitem.batches
branditem.brand
manufactureritem.manufacturer
is_returnableitem.is_returnable
category_iditem.category_id
package_detailsitem.package_details
warehousesitem.warehouses
locationsitem.locations
unititem.unit
unit_iditem.unit_id
default_sales_unit_conversion_iditem.default_sales_unit_conversion_id
default_purchase_unit_conversion_iditem.default_purchase_unit_conversion_id
revenue_recognition_rule_iditem.revenue_recognition_rule_id
recognition_typeitem.recognition_type
revenue_recognition_deferred_account_iditem.revenue_recognition_deferred_account_id
label_rateitem.label_rate
name_sec_langitem.name_sec_lang
alias_nameitem.alias_name
sat_item_key_codeitem.sat_item_key_code
unitkey_codeitem.unitkey_code
taxability_typeitem.taxability_type
show_item_in_portalitem.show_item_in_portal
classesitem.classes
min_profit_percentitem.min_profit_percent
integration_referencesitem.integration_references
allowed_qty_customeritem.allowed_qty_customer
allowed_qty_salespersonitem.allowed_qty_salesperson
qty_frequency_customeritem.qty_frequency_customer
qty_frequency_salespersonitem.qty_frequency_salesperson
is_storage_location_enableditem.is_storage_location_enabled
item_classification_codeitem.item_classification_code
origin_country_codeitem.origin_country_code
package_unit_codeitem.package_unit_code
einvoice_import_iditem.einvoice_import_id
inventory_valuation_methoditem.inventory_valuation_method
is_receivableitem.is_receivable
product_tax_categoryitem.product_tax_category
sales_marginitem.sales_margin
can_be_solditem.can_be_sold
can_be_purchaseditem.can_be_purchased
track_inventoryitem.track_inventory
item_typeitem.item_type
additional_preferencesitem.additional_preferences
is_project_associateditem.is_project_associated
project_iditem.project_id

Get Items List

Retrieves multiple data points or a collection of records related to the current context. This method is useful for fetching lists, related records, or bulk data required for your widget's functionality.

Commonly used for :
  • Fetch related records
  • Retrieve collections of data
  • Access lists or tables of information
Supported Locations :
item.list.sidebaritem.list.buttonitem.bulkaction.button
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('items').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
account_iditem.account_id
account_nameitem.account_name
actual_available_stockitem.actual_available_stock
actual_available_stock_formatteditem.actual_available_stock_formatted
available_stockitem.available_stock
available_stock_formatteditem.available_stock_formatted
branditem.brand
can_be_purchaseditem.can_be_purchased
can_be_solditem.can_be_sold
created_timeitem.created_time
Show More Supported Input Keys
PropertyRequest
descriptionitem.description
dimension_unititem.dimension_unit
dimensions_with_unititem.dimensions_with_unit
eanitem.ean
ean_formatteditem.ean_formatted
has_attachmentitem.has_attachment
heightitem.height
image_document_iditem.image_document_id
image_nameitem.image_name
image_typeitem.image_type
is_combo_productitem.is_combo_product
is_linked_with_zohocrmitem.is_linked_with_zohocrm
is_returnableitem.is_returnable
isbnitem.isbn
item_iditem.item_id
item_nameitem.item_name
item_typeitem.item_type
item_type_formatteditem.item_type_formatted
last_modified_timeitem.last_modified_time
lengthitem.length
manufactureritem.manufacturer
nameitem.name
part_numberitem.part_number
product_typeitem.product_type
product_type_formatteditem.product_type_formatted
purchase_account_iditem.purchase_account_id
purchase_account_nameitem.purchase_account_name
purchase_descriptionitem.purchase_description
purchase_rateitem.purchase_rate
purchase_rate_formatteditem.purchase_rate_formatted
rateitem.rate
rate_formatteditem.rate_formatted
reorder_levelitem.reorder_level
reorder_level_formatteditem.reorder_level_formatted
show_in_storefrontitem.show_in_storefront
skuitem.sku
sourceitem.source
source_formatteditem.source_formatted
statusitem.status
stock_on_handitem.stock_on_hand
stock_on_hand_formatteditem.stock_on_hand_formatted
tagsitem.tags
tax_iditem.tax_id
tax_nameitem.tax_name
tax_percentageitem.tax_percentage
track_batch_numberitem.track_batch_number
track_inventoryitem.track_inventory
track_serial_numberitem.track_serial_number
unititem.unit
upcitem.upc
upc_formatteditem.upc_formatted
weightitem.weight
weight_unititem.weight_unit
weight_with_unititem.weight_with_unit
widthitem.width
zcrm_product_iditem.zcrm_product_id

Set Item customfields

Specifically designed to update custom field values within the current context. This method allows your widget to target and modify custom fields without affecting standard fields, ensuring precise data management.

Commonly used for :
  • Update custom field values
  • Manage user-defined data points
  • Ensure targeted updates to specific fields
Supported Locations :
item.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('item.<custom_field_api_name>',<value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}