I want to make a workflow for Scrap Asset

doc.purpose == “Receipt” and doc.assets[0].asset.journal_entry_for_scrap

this condition is not working in the condition field in workflow

there anyone is here who can help me?

Thanks and Regards
Shubham

I think your condition should be

doc.purpose == "Receipt" and frappe.db.get_value("Assets", doc.assets[0].asset, "journal_entry_for_scrap")
1 Like

did not work,

Regards
Shubham