This script will get custom field records from an Invoice, then update the custom fields on the Invoice.
This function is intented to run in Zoho Books. You must have custom fields on the record you are working on. Learn to create custom fields in Zoho Books here.
Note: Only custom fields with values will appear in the custom_fields key in the Invoice record.