Workflow transactions

In Workflow system, How can I detect the current workflow transaction?

1 Like

@mostafa

Refer the following link for Workflow
https://frappe.github.io/erpnext/user/manual/en/setting-up/workflows.html

When you create the Workflow for any DocType, a hidden Custom Field workflow_state will be added to you doctype. That will represents the Workflow State of the transaction.

@Sangram Thank you for your responding

Iā€™m asking about, how to get the current transaction after user click on action button,
I want to detect the transaction from the code, to make some validation.

I think the field that you have took about is workflow_state, I need the transaction one.

1 Like

@mostafa

you have to write the script for that. Write Script on validation.

1 Like