Hey, I am trying to access the current value of the counter of a naming series in a webhook. I have a webhook with doctype project and I’d like to add this value to the JSON Body.
I tried something like this:
“sales_invoice_counter”: “{{ frappe.db.get_value(‘Series’, ‘SINV.#####’, ‘current_value’) }}”
It sadly didnt work. If you’ve got any ideas on how to accomplish this, please tell me.
Thanks in Advance