Skip to main content

Credit Notes

Custom Actions is a component of an extension. To configure a custom action, you must first create an extension in Sigma and add a widget to it. Once configured and published, the extension can be installed in a Zoho organization, where the custom action becomes available as a workflow action. The action can then be associated with workflow rules and is executed when the configured rule conditions are satisfied.

Methods

Get Creditnote 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 :
creditnote.details.sidebarcreditnote.creation.sidebarcreditnote.details.buttoncreditnote.bulkaction.button
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('creditnote').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
adjustmentcreditnote.adjustment
adjustment_descriptioncreditnote.adjustment_description
adjustment_formattedcreditnote.adjustment_formatted
approver_idcreditnote.approver_id
approvers_listcreditnote.approvers_list
balancecreditnote.balance
balance_formattedcreditnote.balance_formatted
billing_addresscreditnote.billing_address
branch_idcreditnote.branch_id
color_codecreditnote.color_code
Show More Supported Input Keys
PropertyRequest
commentscreditnote.comments
contact_categorycreditnote.contact_category
contact_personscreditnote.contact_persons
created_by_idcreditnote.created_by_id
created_timecreditnote.created_time
creditnote_idcreditnote.creditnote_id
creditnote_numbercreditnote.creditnote_number
creditnote_refundscreditnote.creditnote_refunds
currency_codecreditnote.currency_code
currency_idcreditnote.currency_id
currency_symbolcreditnote.currency_symbol
current_sub_statuscreditnote.current_sub_status
current_sub_status_formattedcreditnote.current_sub_status_formatted
current_sub_status_idcreditnote.current_sub_status_id
custom_field_hashcreditnote.custom_field_hash
custom_fieldscreditnote.custom_fields
customer_idcreditnote.customer_id
customer_namecreditnote.customer_name
datecreditnote.date
date_formattedcreditnote.date_formatted
discountcreditnote.discount
discount_applied_on_amountcreditnote.discount_applied_on_amount
discount_typecreditnote.discount_type
documentscreditnote.documents
ewaybillscreditnote.ewaybills
exchange_ratecreditnote.exchange_rate
html_stringcreditnote.html_string
invoice_idcreditnote.invoice_id
invoices_creditedcreditnote.invoices_credited
is_discount_before_taxcreditnote.is_discount_before_tax
is_emailedcreditnote.is_emailed
is_eway_bill_requiredcreditnote.is_eway_bill_required
is_inclusive_taxcreditnote.is_inclusive_tax
is_pre_gstcreditnote.is_pre_gst
is_square_transactioncreditnote.is_square_transaction
last_modified_by_idcreditnote.last_modified_by_id
last_modified_timecreditnote.last_modified_time
line_itemscreditnote.line_items
notescreditnote.notes
orientationcreditnote.orientation
page_heightcreditnote.page_height
page_widthcreditnote.page_width
price_precisioncreditnote.price_precision
reference_numbercreditnote.reference_number
roundoff_valuecreditnote.roundoff_value
roundoff_value_formattedcreditnote.roundoff_value_formatted
salesperson_idcreditnote.salesperson_id
salesperson_namecreditnote.salesperson_name
shipping_addresscreditnote.shipping_address
shipping_chargecreditnote.shipping_charge
shipping_charge_exclusive_of_taxcreditnote.shipping_charge_exclusive_of_tax
shipping_charge_exclusive_of_tax_formattedcreditnote.shipping_charge_exclusive_of_tax_formatted
shipping_charge_formattedcreditnote.shipping_charge_formatted
shipping_charge_inclusive_of_taxcreditnote.shipping_charge_inclusive_of_tax
shipping_charge_inclusive_of_tax_formattedcreditnote.shipping_charge_inclusive_of_tax_formatted
shipping_charge_sac_codecreditnote.shipping_charge_sac_code
shipping_charge_taxcreditnote.shipping_charge_tax
shipping_charge_tax_exemption_codecreditnote.shipping_charge_tax_exemption_code
shipping_charge_tax_exemption_idcreditnote.shipping_charge_tax_exemption_id
shipping_charge_tax_formattedcreditnote.shipping_charge_tax_formatted
shipping_charge_tax_idcreditnote.shipping_charge_tax_id
shipping_charge_tax_namecreditnote.shipping_charge_tax_name
shipping_charge_tax_percentagecreditnote.shipping_charge_tax_percentage
shipping_charge_tax_typecreditnote.shipping_charge_tax_type
statuscreditnote.status
status_formattedcreditnote.status_formatted
sub_statusescreditnote.sub_statuses
sub_totalcreditnote.sub_total
sub_total_formattedcreditnote.sub_total_formatted
sub_total_inclusive_of_taxcreditnote.sub_total_inclusive_of_tax
sub_total_inclusive_of_tax_formattedcreditnote.sub_total_inclusive_of_tax_formatted
subject_contentcreditnote.subject_content
submitted_bycreditnote.submitted_by
submitted_datecreditnote.submitted_date
submitted_date_formattedcreditnote.submitted_date_formatted
submitter_idcreditnote.submitter_id
tax_roundingcreditnote.tax_rounding
tax_totalcreditnote.tax_total
tax_total_formattedcreditnote.tax_total_formatted
taxescreditnote.taxes
template_idcreditnote.template_id
template_namecreditnote.template_name
template_typecreditnote.template_type
template_type_formattedcreditnote.template_type_formatted
termscreditnote.terms
totalcreditnote.total
total_credits_usedcreditnote.total_credits_used
total_formattedcreditnote.total_formatted
total_refunded_amountcreditnote.total_refunded_amount
transaction_rounding_typecreditnote.transaction_rounding_type

Set Creditnote 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 :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('creditnote.name', <value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
adjustmentcreditnote.adjustment
adjustment_descriptioncreditnote.adjustment_description
adjustment_formattedcreditnote.adjustment_formatted
approver_idcreditnote.approver_id
approvers_listcreditnote.approvers_list
balancecreditnote.balance
balance_formattedcreditnote.balance_formatted
billing_addresscreditnote.billing_address
branch_idcreditnote.branch_id
color_codecreditnote.color_code
Show More Supported Input Keys
PropertyRequest
commentscreditnote.comments
contact_categorycreditnote.contact_category
contact_personscreditnote.contact_persons
created_by_idcreditnote.created_by_id
created_timecreditnote.created_time
creditnote_idcreditnote.creditnote_id
creditnote_numbercreditnote.creditnote_number
creditnote_refundscreditnote.creditnote_refunds
currency_codecreditnote.currency_code
currency_idcreditnote.currency_id
currency_symbolcreditnote.currency_symbol
current_sub_statuscreditnote.current_sub_status
current_sub_status_formattedcreditnote.current_sub_status_formatted
current_sub_status_idcreditnote.current_sub_status_id
custom_field_hashcreditnote.custom_field_hash
custom_fieldscreditnote.custom_fields
customer_idcreditnote.customer_id
customer_namecreditnote.customer_name
datecreditnote.date
date_formattedcreditnote.date_formatted
discountcreditnote.discount
discount_applied_on_amountcreditnote.discount_applied_on_amount
discount_typecreditnote.discount_type
documentscreditnote.documents
ewaybillscreditnote.ewaybills
exchange_ratecreditnote.exchange_rate
html_stringcreditnote.html_string
invoice_idcreditnote.invoice_id
invoices_creditedcreditnote.invoices_credited
is_discount_before_taxcreditnote.is_discount_before_tax
is_emailedcreditnote.is_emailed
is_eway_bill_requiredcreditnote.is_eway_bill_required
is_inclusive_taxcreditnote.is_inclusive_tax
is_pre_gstcreditnote.is_pre_gst
is_square_transactioncreditnote.is_square_transaction
last_modified_by_idcreditnote.last_modified_by_id
last_modified_timecreditnote.last_modified_time
line_itemscreditnote.line_items
notescreditnote.notes
orientationcreditnote.orientation
page_heightcreditnote.page_height
page_widthcreditnote.page_width
price_precisioncreditnote.price_precision
reference_numbercreditnote.reference_number
roundoff_valuecreditnote.roundoff_value
roundoff_value_formattedcreditnote.roundoff_value_formatted
salesperson_idcreditnote.salesperson_id
salesperson_namecreditnote.salesperson_name
shipping_addresscreditnote.shipping_address
shipping_chargecreditnote.shipping_charge
shipping_charge_exclusive_of_taxcreditnote.shipping_charge_exclusive_of_tax
shipping_charge_exclusive_of_tax_formattedcreditnote.shipping_charge_exclusive_of_tax_formatted
shipping_charge_formattedcreditnote.shipping_charge_formatted
shipping_charge_inclusive_of_taxcreditnote.shipping_charge_inclusive_of_tax
shipping_charge_inclusive_of_tax_formattedcreditnote.shipping_charge_inclusive_of_tax_formatted
shipping_charge_sac_codecreditnote.shipping_charge_sac_code
shipping_charge_taxcreditnote.shipping_charge_tax
shipping_charge_tax_exemption_codecreditnote.shipping_charge_tax_exemption_code
shipping_charge_tax_exemption_idcreditnote.shipping_charge_tax_exemption_id
shipping_charge_tax_formattedcreditnote.shipping_charge_tax_formatted
shipping_charge_tax_idcreditnote.shipping_charge_tax_id
shipping_charge_tax_namecreditnote.shipping_charge_tax_name
shipping_charge_tax_percentagecreditnote.shipping_charge_tax_percentage
shipping_charge_tax_typecreditnote.shipping_charge_tax_type
statuscreditnote.status
status_formattedcreditnote.status_formatted
sub_statusescreditnote.sub_statuses
sub_totalcreditnote.sub_total
sub_total_formattedcreditnote.sub_total_formatted
sub_total_inclusive_of_taxcreditnote.sub_total_inclusive_of_tax
sub_total_inclusive_of_tax_formattedcreditnote.sub_total_inclusive_of_tax_formatted
subject_contentcreditnote.subject_content
submitted_bycreditnote.submitted_by
submitted_datecreditnote.submitted_date
submitted_date_formattedcreditnote.submitted_date_formatted
submitter_idcreditnote.submitter_id
tax_roundingcreditnote.tax_rounding
tax_totalcreditnote.tax_total
tax_total_formattedcreditnote.tax_total_formatted
taxescreditnote.taxes
template_idcreditnote.template_id
template_namecreditnote.template_name
template_typecreditnote.template_type
template_type_formattedcreditnote.template_type_formatted
termscreditnote.terms
totalcreditnote.total
total_credits_usedcreditnote.total_credits_used
total_formattedcreditnote.total_formatted
total_refunded_amountcreditnote.total_refunded_amount
transaction_rounding_typecreditnote.transaction_rounding_type

Get Creditnotes 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 :
creditnote.list.sidebarcreditnote.list.buttoncreditnote.bulkaction.button
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('creditnotes').then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}
Supported Input Keys :
PropertyRequest
applied_invoicescreditnote.applied_invoices
balancecreditnote.balance
balance_formattedcreditnote.balance_formatted
created_timecreditnote.created_time
creditnote_idcreditnote.creditnote_id
creditnote_numbercreditnote.creditnote_number
currency_codecreditnote.currency_code
currency_idcreditnote.currency_id
customer_idcreditnote.customer_id
customer_namecreditnote.customer_name
Show More Supported Input Keys
PropertyRequest
datecreditnote.date
date_formattedcreditnote.date_formatted
exchange_ratecreditnote.exchange_rate
has_attachmentcreditnote.has_attachment
is_emailedcreditnote.is_emailed
last_modified_timecreditnote.last_modified_time
reference_numbercreditnote.reference_number
salesperson_idcreditnote.salesperson_id
salesperson_namecreditnote.salesperson_name
statuscreditnote.status
status_formattedcreditnote.status_formatted
template_idcreditnote.template_id
template_typecreditnote.template_type
totalcreditnote.total
total_formattedcreditnote.total_formatted
selectedcreditnote.selected

Set Creditnote 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 :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('creditnote.<custom_field_api_name>',<value>).then(function (data) {
     //response Handling
    }).catch(function (err) {
     //error Handling
    });
  });
}

Get Line Items

This method allows you to retrieve the line items associated with the current credit note. It can be used to fetch details such as product information, quantity, rate, and total for each line item. This is particularly useful when you want to display or utilize the credit note's line item details within your widget or extension.

Supported Locations :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.get('creditnote.line_items').then(function (res) {
      console.log('creditnote line items : ', res);
    }).catch(function (err) {
      console.log('Error while fetching creditnote line items : ', err);
    });
  });
}
Supported Input Keys :
PropertyRequest
item_iditem_id
line_item_idline_item_id
account_idaccount_id
namename
descriptiondescription
item_orderitem_order
raterate
quantityquantity
tax_idtax_id
tagstags
Show More Supported Input Keys
PropertyRequest
tax_exemption_codetax_exemption_code
tax_exemption_idtax_exemption_id
product_typeproduct_type
avatax_tax_codeavatax_tax_code
discountdiscount
discountsdiscounts
discount_account_iddiscount_account_id
discount_account_namediscount_account_name
item_custom_fieldsitem_custom_fields
hsn_or_sachsn_or_sac
warehouse_idwarehouse_id
location_idlocation_id
serial_numbersserial_numbers
batchesbatches
gst_treatment_codegst_treatment_code
tax_treatment_codetax_treatment_code
is_item_shippedis_item_shipped
invoice_item_idinvoice_item_id
invoice_idinvoice_id
is_returned_to_stockis_returned_to_stock
salesreturn_item_idsalesreturn_item_id
project_idproject_id
pricebook_idpricebook_id
is_discountedis_discounted
tds_tax_idtds_tax_id
unitunit
unit_conversion_idunit_conversion_id
codecode
revenue_recognition_rule_idrevenue_recognition_rule_id
service_start_dateservice_start_date
allocation_modeallocation_mode
recognition_typerecognition_type
revenue_recognition_deferred_account_idrevenue_recognition_deferred_account_id
service_end_dateservice_end_date
asset_priceasset_price
item_meta_fieldsitem_meta_fields
sat_item_key_codesat_item_key_code
unitkey_codeunitkey_code
modified_asset_pricemodified_asset_price
non_taxable_amountnon_taxable_amount
identification_numberidentification_number
storagesstorages
tax_categorytax_category
sales_ratesales_rate
label_ratelabel_rate
product_tax_categoryproduct_tax_category
mapped_itemsmapped_items
tax_selection_modetax_selection_mode
line_item_taxesline_item_taxes
line_item_tdsline_item_tds
taxestaxes

Set Line Items

This methods is to allowed for set a list of line items in the current credit note. It can be used to set details such as product information, quantity, rate, and total for multiple line items. This is particularly useful when you want to update or set multiple line items details within your widget or extension.This methods is append the line items to the existing line items in the credit note.

Supported Locations :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    var lineItemMetaData =[{'rate':'1000','description':'Table','name':'Table'},{'rate':'1000','description':'Monitor','name':'Monitor'}]
    ZFAPPS.set('creditnote.line_items',lineItemMetaData).then(function (res) {
      console.log('creditnote line items : ', res);
    }).catch(function (err) {
      console.log('Error while fetching creditnote line items : ', err);
    });
  });
}
Supported Input Keys :
PropertyRequest
item_iditem_id
line_item_idline_item_id
account_idaccount_id
namename
descriptiondescription
item_orderitem_order
raterate
quantityquantity
tax_idtax_id
tagstags
Show More Supported Input Keys
PropertyRequest
tax_exemption_codetax_exemption_code
tax_exemption_idtax_exemption_id
product_typeproduct_type
avatax_tax_codeavatax_tax_code
discountdiscount
discountsdiscounts
discount_account_iddiscount_account_id
discount_account_namediscount_account_name
item_custom_fieldsitem_custom_fields
hsn_or_sachsn_or_sac
warehouse_idwarehouse_id
location_idlocation_id
serial_numbersserial_numbers
batchesbatches
gst_treatment_codegst_treatment_code
tax_treatment_codetax_treatment_code
is_item_shippedis_item_shipped
invoice_item_idinvoice_item_id
invoice_idinvoice_id
is_returned_to_stockis_returned_to_stock
salesreturn_item_idsalesreturn_item_id
project_idproject_id
pricebook_idpricebook_id
is_discountedis_discounted
tds_tax_idtds_tax_id
unitunit
unit_conversion_idunit_conversion_id
codecode
revenue_recognition_rule_idrevenue_recognition_rule_id
service_start_dateservice_start_date
allocation_modeallocation_mode
recognition_typerecognition_type
revenue_recognition_deferred_account_idrevenue_recognition_deferred_account_id
service_end_dateservice_end_date
asset_priceasset_price
item_meta_fieldsitem_meta_fields
sat_item_key_codesat_item_key_code
unitkey_codeunitkey_code
modified_asset_pricemodified_asset_price
non_taxable_amountnon_taxable_amount
identification_numberidentification_number
storagesstorages
tax_categorytax_category
sales_ratesales_rate
label_ratelabel_rate
product_tax_categoryproduct_tax_category
mapped_itemsmapped_items
tax_selection_modetax_selection_mode
line_item_taxesline_item_taxes
line_item_tdsline_item_tds
taxestaxes

Set Single Line Items

This methods is to allowed for setting/updating a single line item in the current credit note. It can be used to set details such as product information, quantity, rate, and total for a single line item. This is particularly useful when you want to update or set a single line item details within your widget or extension.

Supported Locations :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    ZFAPPS.set('creditnote.line_items[0]',{'rate':'1000'}).then(function (res) {
      console.log('creditnote line item rate : ', res);
    }).catch(function (err) {
      console.log('Error while fetching creditnote line item rate : ', err);
    });
  });
}
Supported Input Keys :
PropertyRequest
item_iditem_id
line_item_idline_item_id
account_idaccount_id
namename
descriptiondescription
item_orderitem_order
raterate
quantityquantity
tax_idtax_id
tagstags
Show More Supported Input Keys
PropertyRequest
tax_exemption_codetax_exemption_code
tax_exemption_idtax_exemption_id
product_typeproduct_type
avatax_tax_codeavatax_tax_code
discountdiscount
discountsdiscounts
discount_account_iddiscount_account_id
discount_account_namediscount_account_name
item_custom_fieldsitem_custom_fields
hsn_or_sachsn_or_sac
warehouse_idwarehouse_id
location_idlocation_id
serial_numbersserial_numbers
batchesbatches
gst_treatment_codegst_treatment_code
tax_treatment_codetax_treatment_code
is_item_shippedis_item_shipped
invoice_item_idinvoice_item_id
invoice_idinvoice_id
is_returned_to_stockis_returned_to_stock
salesreturn_item_idsalesreturn_item_id
project_idproject_id
pricebook_idpricebook_id
is_discountedis_discounted
tds_tax_idtds_tax_id
unitunit
unit_conversion_idunit_conversion_id
codecode
revenue_recognition_rule_idrevenue_recognition_rule_id
service_start_dateservice_start_date
allocation_modeallocation_mode
recognition_typerecognition_type
revenue_recognition_deferred_account_idrevenue_recognition_deferred_account_id
service_end_dateservice_end_date
asset_priceasset_price
item_meta_fieldsitem_meta_fields
sat_item_key_codesat_item_key_code
unitkey_codeunitkey_code
modified_asset_pricemodified_asset_price
non_taxable_amountnon_taxable_amount
identification_numberidentification_number
storagesstorages
tax_categorytax_category
sales_ratesales_rate
label_ratelabel_rate
product_tax_categoryproduct_tax_category
mapped_itemsmapped_items
tax_selection_modetax_selection_mode
line_item_taxesline_item_taxes
line_item_tdsline_item_tds
taxestaxes

Set Bulk Line Items

This methods is to allowed for replacing/updating all the existing line items in the current credit note. It can be used to set details such as product information, quantity, rate, and total for multiple line items. This is particularly useful when you want to update or set multiple line items details within your widget or extension.

Supported Locations :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    var lineItemMetaData =[{'rate':'1000','description':'Table','name':'Table'},{'rate':'1000','description':'Monitor','name':'Monitor'}]
    ZFAPPS.set('creditnote.line_items.bulk_update',lineItemMetaData).then(function (res) {
      console.log('creditnote line items : ', res);
    }).catch(function (err) {
      console.log('Error while fetching creditnote line items : ', err);
    });
  });
}
Supported Input Keys :
PropertyRequest
item_iditem_id
line_item_idline_item_id
account_idaccount_id
namename
descriptiondescription
item_orderitem_order
raterate
quantityquantity
tax_idtax_id
tagstags
Show More Supported Input Keys
PropertyRequest
tax_exemption_codetax_exemption_code
tax_exemption_idtax_exemption_id
product_typeproduct_type
avatax_tax_codeavatax_tax_code
discountdiscount
discountsdiscounts
discount_account_iddiscount_account_id
discount_account_namediscount_account_name
item_custom_fieldsitem_custom_fields
hsn_or_sachsn_or_sac
warehouse_idwarehouse_id
location_idlocation_id
serial_numbersserial_numbers
batchesbatches
gst_treatment_codegst_treatment_code
tax_treatment_codetax_treatment_code
is_item_shippedis_item_shipped
invoice_item_idinvoice_item_id
invoice_idinvoice_id
is_returned_to_stockis_returned_to_stock
salesreturn_item_idsalesreturn_item_id
project_idproject_id
pricebook_idpricebook_id
is_discountedis_discounted
tds_tax_idtds_tax_id
unitunit
unit_conversion_idunit_conversion_id
codecode
revenue_recognition_rule_idrevenue_recognition_rule_id
service_start_dateservice_start_date
allocation_modeallocation_mode
recognition_typerecognition_type
revenue_recognition_deferred_account_idrevenue_recognition_deferred_account_id
service_end_dateservice_end_date
asset_priceasset_price
item_meta_fieldsitem_meta_fields
sat_item_key_codesat_item_key_code
unitkey_codeunitkey_code
modified_asset_pricemodified_asset_price
non_taxable_amountnon_taxable_amount
identification_numberidentification_number
storagesstorages
tax_categorytax_category
sales_ratesales_rate
label_ratelabel_rate
product_tax_categoryproduct_tax_category
mapped_itemsmapped_items
tax_selection_modetax_selection_mode
line_item_taxesline_item_taxes
line_item_tdsline_item_tds
taxestaxes

Set Line Items Customfields

This method is allowed for setting/updating custom fields for line items in the current credit note. It can be used to set details such as product information, quantity, rate, total, and custom field values for multiple line items. This is particularly useful when you want to update or set multiple line items details along with their custom field values within your widget or extension.

Supported Locations :
creditnote.creation.sidebar
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
    var lineItemMetaData =[{'rate':'1000','description':'Table','name':'Table','item_custom_fields':[{'api_name':'<line_item_custom_field_name>', 'value':'<value>'}]}]
    ZFAPPS.set('creditnote.line_items',lineItemMetaData).then(function (res) {
      console.log('creditnote line items : ', res);
    }).catch(function (err) {
      console.log('Error while fetching creditnote line items : ', err);
    });
  });
}
Supported Input Keys :
PropertyRequest
item_iditem_id
line_item_idline_item_id
account_idaccount_id
namename
descriptiondescription
item_orderitem_order
raterate
quantityquantity
tax_idtax_id
tagstags
Show More Supported Input Keys
PropertyRequest
tax_exemption_codetax_exemption_code
tax_exemption_idtax_exemption_id
product_typeproduct_type
avatax_tax_codeavatax_tax_code
discountdiscount
discountsdiscounts
discount_account_iddiscount_account_id
discount_account_namediscount_account_name
item_custom_fieldsitem_custom_fields
hsn_or_sachsn_or_sac
warehouse_idwarehouse_id
location_idlocation_id
serial_numbersserial_numbers
batchesbatches
gst_treatment_codegst_treatment_code
tax_treatment_codetax_treatment_code
is_item_shippedis_item_shipped
invoice_item_idinvoice_item_id
invoice_idinvoice_id
is_returned_to_stockis_returned_to_stock
salesreturn_item_idsalesreturn_item_id
project_idproject_id
pricebook_idpricebook_id
is_discountedis_discounted
tds_tax_idtds_tax_id
unitunit
unit_conversion_idunit_conversion_id
codecode
revenue_recognition_rule_idrevenue_recognition_rule_id
service_start_dateservice_start_date
allocation_modeallocation_mode
recognition_typerecognition_type
revenue_recognition_deferred_account_idrevenue_recognition_deferred_account_id
service_end_dateservice_end_date
asset_priceasset_price
item_meta_fieldsitem_meta_fields
sat_item_key_codesat_item_key_code
unitkey_codeunitkey_code
modified_asset_pricemodified_asset_price
non_taxable_amountnon_taxable_amount
identification_numberidentification_number
storagesstorages
tax_categorytax_category
sales_ratesales_rate
label_ratelabel_rate
product_tax_categoryproduct_tax_category
mapped_itemsmapped_items
tax_selection_modetax_selection_mode
line_item_taxesline_item_taxes
line_item_tdsline_item_tds
taxestaxes