Hi all -
First off, i’ve got many webhooks working fine with multiple different doctypes.
The new webhook I’m trying to set up is for when a Sales Order is submitted. I’m trying to pass the data from the Items table. I can see all the data when i to a GET from Postman. The items table is populated. The taxes table is populated. However, when i set up a webhook with the following JSON request:
{
“items”: “{{doc.items|striptags|e}}”,
“taxes”: “{{doc.taxes|striptags|e}}”
}
The data returned is blank for Items and full for Taxes. Again, both tables contain data.
{
“items”: “”,
“taxes”: “[{'name': 'm0gaujrlni', 'owner': ' 'creation': '2025-02-21 18:12:09.252014', 'modified': '2025-02-21 18:12:12.655660', 'modified_by': ', 'docstatus': 1, 'idx': 1, 'charge_type': 'On Net Total', 'row_id': None, 'account_head': 'NY Tax 8.875% - C4', 'description': 'NY Tax 8.875%', 'included_in_print_rate': 0, 'included_in_paid_amount': 0, 'cost_center': 'Main ', 'rate': 8.875, 'account_currency': 'USD', 'tax_amount': 106.5, 'total': 1306.5, 'tax_amount_after_discount_amount': 106.5, 'base_tax_amount': 106.5, 'base_total': 1306.5, 'base_tax_amount_after_discount_amount': 106.5, 'item_wise_tax_detail': '{"A2337":[8.875,106.5]}', 'dont_recompute_tax': 0, 'parent': 'SAL-ORD-2025-00001-5', 'parentfield': 'taxes', 'parenttype': 'Sales Order', 'doctype': 'Sales Taxes and Charges', '__unsaved': 1}]”
}
Any thoughts?
Thanks!