Workflow Based on Item Group

I mentioned this in the conditional workflow but encountered an error: ‘Server Error: NameError: name ‘any’ is not defined’. I want to create an approval workflow based on the item group. How can I do this?

any(item[‘item_group’] == ‘Raw Material’ for item in doc.items)

Screenshot from 2024-06-25 10-25-28

You can’t use any random condition in the workflow condition. so check the reference:

It’s working fine sir,Thank you for your assistance